Home›Support›English Support›[Waiting for user feedback] Translating terms in custom taxonomy with same slug bug
[Waiting for user feedback] Translating terms in custom taxonomy with same slug bug
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am trying to translate terms in a custom taxonomy with the same slug for different regions. We have these URLs: NL -> hidden link and BE -> hidden link. Because BE and NL are the same language, the slugs are the same. I can reproduce this in a basic install and can provide the basic installation where this issue also is. I can provide this basic installation with the error.
Symptoms:
The body class shows 'term-7491' for both URLs, which is incorrect. Term_id 7491 is for the BE term, but NL should have 65 as term_id in the body class. This issue extends across the website, affecting other codes. For example, the canonical tag in the source of the NL link shows the BE URL as the canonical tag. This happens when the 'Adjust ID's' feature is turned off.
Questions:
Why are the term IDs incorrect in the body class for different regions?
How can I ensure the correct canonical URL is displayed for each region?
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Sorry for the late response because of the holidays and the high support load. It is not normal here. Thank you for your kind understanding.
Please fill in the private details fields after a full site backup. We would like to access the admin area of your dev site (hidden link) for further checking. Refer to the following links for more details about our privacy information sharing policies.
Thank you for the updates. I can reproduce the issue on hidden link.
Please allow me to make a copy of your dev site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging and escalating the ticket to our developers.