This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing an issue where both the original and translated category pages have the same ID in the body class when the 'Adjust IDs' feature is turned off. Additionally, when clicking 'Edit category' in the top bar while logged in, it redirects to the NL backend category, regardless of the language.
Solution:
We recommend enabling the “Adjust IDs for multilingual functionality” option found under WPML>>Languages>>Make themes work multilingual. This ensures that translated IDs are correctly used in secondary languages and is crucial for themes and plugins not specifically built with multilingual support. This feature should only be disabled if you are managing multilingual compatibility using WPML hooks, such as
wpml_object_id
. For further details, please refer to our documentation:
- How to Optimize MySQL Queries
- WPML Object ID Hook
- Achieving WPML Compatibility for Your Themes and Plugins
Please note that this issue is also documented in our errata and is expected to be fixed in a future version of WPML. You can track the status of this issue here: Translated Term Slug Identical to the Original Term Slug.
If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket 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 is split from https://wpml.org/forums/topic/translating-terms-in-custom-taxonomy-with-same-slug-bug/