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.
Problem: The client updated translations using the WPML editor, and while the page displayed the updated content, WPML still showed an old version of the text. The client was unable to make further edits due to WPML not reflecting the changes. Solution: The issue was resolved by the client themselves. It was discovered that there were two conflicting versions of the article. Once the client restored one autosave, it resolved the conflict and allowed WPML to reflect the updated translations correctly. If you're experiencing similar issues, we recommend checking for any conflicting versions or autosaves that might be causing the problem.
Please note that this solution might be outdated or not applicable to your specific 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. If the problem persists, please open a new support ticket at WPML support forum for further assistance.