Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client accidentally deleted a string translation for the URL slug of a custom post type created using the CPT UI plugin and needs to restore it.
Solution:
1. Navigate to WPML->String Translation. Check if there is a drop-down option to scan for strings. Select WP and perform a scan.
2. Go to the custom post type, make a small change, and update it. Then, check the String Translation section again.
3. If the string still does not appear, we recommend setting different slugs in different languages for your custom post type by going to WPML-> Settings -> Post Types Translation -> Events (my-events) -> Set different slugs in different languages for Events.

If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if needed. You can do so at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by anastasiosV-6 2 years, 3 months ago.

Assisted by: Bobby.

Author Posts
February 27, 2023 at 9:13 pm #13129527

anastasiosV-6

I have a custom post type and accidentally deleted a string translation that was stored on the WordPress domain and it is the URL slug of my custom post type.

How can I restore this translation?
I use the CPT UI plugin to create the custom post type.

hidden link

February 28, 2023 at 1:54 am #13130355

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Please go to WPML->String Translation-> do you see a drop-down option to scan for strings? Select WP and scan.

Also, try going to the custom type -> make a small change and update then check String Translation again.

Let me know your results, please.

February 28, 2023 at 7:57 am #13131859

anastasiosV-6

Hello,

I can't find the scan option for WP. Could you please send me a screenshot?

I had tried to make changes to my custom post type, but still nothing happened.

February 28, 2023 at 6:33 pm #13138821

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

March 2, 2023 at 9:06 pm #13158781

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

I was able to locate 2 strings with /ekdiloseis here:
hidden link

However, I'd recommend translating the slug by going to

WPML-> Settings -> Post Types Translation -> Events (my-events) -> Set different slugs in different languages for Events

Let me know your results, please.

Screen Shot 2023-03-02 at 1.05.13 PM.png
Screen Shot 2023-03-02 at 12.52.15 PM.png