Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is trying to use the same category slug in different languages (DE/EN) on your site, but WPML automatically appends the language code to the slug. Even after manually editing the slug to remove the language code, it gets reattached upon saving.
Solution:
In WordPress, slugs must be unique, which is why the language code is automatically added to the translated term. You can use the Quick Edit option to manually remove the language slug from the category term as a workaround. Please follow the steps suggested in the following errata: https://wpml.org/errata/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 open a new support ticket at https://wpml.org/forums/forum/english-support/.

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 1 reply, has 2 voices.

Last updated by Bigul 8 months, 2 weeks ago.

Assisted by: Bigul.

Author Posts
September 27, 2024 at 8:41 pm #16231230

maksimK-11

Background of the issue:
I'd like to use the same category slug in different languages (DE/EN) on my site hidden link. WPML automatically appends the language code, and I saw that the workaround is to edit the slug manually and remove the language code. However, after saving, the language code gets attached again.

Symptoms:
After manually editing the slug to remove the language code, the language code gets reattached upon saving.

Questions:
What am I missing when trying to use the same category slug in different languages?

September 28, 2024 at 2:43 am #16231517

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 to resolve the issue.

In WordPress slugs should be unique, that is why the language code is automatically added to the translated term.

As a workaround. we have to Quick Edit the category term to remove the language slug.

Please try the steps suggested in the following errata and let us know your feedback.

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

--
Thanks!

Bigul