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.
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?
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
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
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.
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.
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.
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.