Skip Navigation

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.
Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

This topic contains 1 reply, has 1 voice.

Last updated by Bigul 6 hours, 41 minutes ago.

Assisted by: Bigul.

Author Posts
April 3, 2025 at 12:15 pm #16892091

Ton

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?

April 4, 2025 at 6:00 am #16895139

Ton

Example can be found here:

hidden link
hidden link

These both have ID 8 in the body class.
Also when logged in in the top bar, when clicking "Edit category", it always goes to the NL backend category.

This does not happen when you have different slugs:
hidden link
hidden link

All this happens when the 'Adjust ID's' feature is turned off.

I can provide the login for this dev environment.

April 6, 2025 at 4:27 pm #16901642

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

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.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

April 8, 2025 at 3:29 am #16906625

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

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.

--
Thanks!

Bigul

April 8, 2025 at 5:23 pm #16910498

Ton

Yeah that's ok, go make a copy. I will await your reply.

April 9, 2025 at 4:29 pm #16915047

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

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