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.
Thank you for the updates and permission. I made a copy of the site, we will troubleshoot it further and get back to you soon. Please wait.
--
Thanks!
Bigu
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.