Skip Navigation

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:

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.

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Bigul 1 month ago.

Assisted by: Bigul.

Author Posts
April 30, 2025 at 4:33 pm #16984944

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.

May 2, 2025 at 9:03 am #16988622

Ton

Any update on this?

May 2, 2025 at 3:49 pm #16990222

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you resolve the issue.

Apologies for the very late response. The previous ticket was closed because of the wrong status. So I reopened it now.

This bug has been escalated to our developers, and they are still investigating a possible workaround.

We officially recommend enabling the “Adjust IDs for multilingual functionality” option under WPML>>Languages>>Make themes work multilingual to ensure translated IDs are used correctly in secondary languages. This is a core WPML feature designed for themes and plugins that are not built specifically with multilingual support in mind.

Therefore, it is only recommended to disable this option if you are handling multilingual compatibility using WPML hooks, such as wpml_object_id.

For more information, please refer to the following documentation:

https://wpml.org/faq/how-to-optimize-mysql-queries/

https://wpml.org/wpml-hook/wpml_object_id/

https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/

We will get back to you as soon as possible. Thank you very much for your patience and kind understanding.

--
Thanks!

Bigul

May 8, 2025 at 12:29 pm #17011617

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Please note that this issue is related to the following errata and is expected to be fixed in a future version of WPML. However, at this time, we do not have an exact timeframe for the fix. Thank you for your kind understanding.

https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/

--
Thanks!

Bigul