Skip to content Skip to sidebar

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

Problem:
The client reported issues with translations not showing correctly after renaming a custom post type from 'Products' to 'Places'. Specifically, the English versions of the pages were not appearing, and tags were displayed in both English and Arabic instead of only English.
Solution:
Renaming custom post types with existing content can lead to unexpected behavior, including issues with translation associations and language metadata.
To address potential database inconsistencies caused by the renaming:

  • Check
    wp_posts.post_type

    to ensure all translated entries are still listed as 'product'.

  • Verify
    wp_postmeta.meta_key

    for keys like _wpml_word_count and _wpml_media_duplicate to confirm they're intact.

  • Ensure
    icl_translations.element_type

    is set to 'post_product' for all translations.

  • Confirm the correct language assignment in
    icl_translations.language_code

    .

  • Make sure translated posts share the same Translation ID (trid) as the originals in
    icl_translations.trid

    .

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, please feel free to open a new support ticket for further assistance 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 10 replies, has 1 voice.

Last updated by mahmoudA-39 6 days, 15 hours ago.

Assisted by: Andreas W..

Author Posts
August 6, 2025 at 9:58 am #17299000

mahmoudA-39

Background of the issue:
I translated products with URL setting as 'Auto-generate from title (default)'. However, now I want to change to the original language slug and changed the setting to 'Copy from original language' accordingly.

Symptoms:
I need to change the slug to be the same as the original language.

Questions:
How can I change the slug to be the same as the original language?

August 6, 2025 at 11:00 am #17299166

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

You can follow next steps:
- Go to WPML → Settings and scroll down to Translated documents options.
- Under Page URL, choose the Copy option
- Go to WPML → Languages.
- Under Site Languages, click the Edit Languages link.
- In the table, set the Encode URLs value to Yes in the language you want slugs to be copied to. Click Save.
- Re-translte page

- https://wpml.org/documentation/getting-started-guide/translating-page-slugs/#:~:text=To%20make%20your%20URLs%20look,slugs%20to%20be%20copied%20to.

Let us know how it goes.

Regards,
Drazen

August 6, 2025 at 12:23 pm #17299436

mahmoudA-39

Hi

It is ok now , made the slugs same for both arabic and english languages. Translated the page but English pages are counting 0 in admin Products page and no english page is displayed in front end

Regards

August 7, 2025 at 6:20 am #17301270

mahmoudA-39

Hi

To clarify, we made the translation of products and pencil icon shows against each product in admin products page. However, no english version are shown, the english counter is 0 and no english pages in front end.

Is there any sitting causing this?

Please advise.

Regards

August 8, 2025 at 2:50 pm #17305771

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the website to investigate the issue further.

The required fields are located below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" to create a copy of the website so I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or a copy of the website from your server for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/account/websites/.

If you are unable to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.

Best regards,
Andreas

August 9, 2025 at 3:48 pm #17306982

mahmoudA-39

Hi

can't see the "wp-admin / FTP" fields

Regards

August 9, 2025 at 4:21 pm #17307005

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have enabled the private reply form again now.

August 9, 2025 at 9:53 pm #17307131

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

After revisiting WPML > Settings > Post Type Translations and saving that section again, the language filters are now visible on the “Places” post type.

It looks like you’ve renamed “Products” to “Places,” and I noticed there are four items in the trash folder, which I’m unable to access.

Did this issue begin after renaming “Products” to “Places”? If so, please note that changing the labels of custom post types with existing content is not recommended, as it can lead to unexpected behavior.

You can now proceed with your translations. Let me know if you encounter any further issues—I’m happy to assist.

August 10, 2025 at 3:10 am #17307212

mahmoudA-39

Hi

1- Products changed to place before making any translation whatsoever.

2- Can you advise what changes made in Post Type Translations as I can not see any changes

3- I retranslated and pencil icon shows but In Products ( Places) page stil English counter show 0 and no English versions. see attached.

4- The Notice at top still there. see attached "We detected that the product_type field was set incorrectly for some product translations...." see attached.

Regards

1.png
August 10, 2025 at 8:07 am #17307304

mahmoudA-39

Hi

I renamed Place as Product. Also, managed to display the english pages by restoring them from trash. Now issues remaining:

1- The error massage

2- In admin products page English page, tags are shown in english and arabic. They showed only be in English . See attachment.

Regards

2.png
August 12, 2025 at 6:01 pm #17314736

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

WPML relies on the post type slug and internal taxonomy references to map translations. Renaming the post type disrupts:

Translation associations in icl_translations

Language metadata in wp_postmeta

Possibly even taxonomy term relationships

Reverting the name doesn’t automatically restore those links.

---

You could try to fix this directly on the database, but I am not sure if this could still lead to mismatches regarding the translation ID (trid).

wp_posts.post_type: Ensure all translated entries are still listed as product

wp_postmeta.meta_key: Look for _wpml_word_count, _wpml_media_duplicate, etc., and confirm they’re intact

icl_translations.element_type: Should be post_product for all translations

icl_translations.language_code: Confirm correct language assignment

icl_translations.trid: Ensure translated posts share the same trid as originals

August 15, 2025 at 4:20 am #17322473

mahmoudA-39

Not completely resolved and will manage the issue.