Skip Navigation

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

Problem:
The client wants to keep the same taxonomy term slug in a secondary language.

Solution:
The category slug should be unique; this is the default behavior of WordPress. A category in the secondary language is still a new category for WordPress that’s why it cannot have the same slug.

But there is a workaround for this: if you edit the taxonomy via the "quick edit" option, you should be able to change the slug and use always the same. You can do this by following the below steps:

1. Go to the Taxonomies list page.

2. Select the secondary language using the admin language switcher.

3. Press the Quick Edit link on the category in which you want to update the slug.

4. Update the slug and press the Update Category button.

This issue was also reported to our developers, you can see more details here:
https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/

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 2 voices.

Last updated by nickS-28 1 year, 10 months ago.

Assisted by: Noman.

Author Posts
December 31, 2022 at 3:10 pm #12735493

nickS-28

I am trying to:
translate category slugs

I expected to see:
translated category slugs

Instead, I got:
non-translated category slugs

December 31, 2022 at 4:16 pm #12735533

nickS-28

so, to be clear.

I am trying to duplicate a post category across all languages to only use the slug /blog/.

In WPML, it then adds weird slugs like "blog-2" etc. This does not seem to be an issue with Polylang Pro. Therefore, I am just wondering whether the Polylang Pro version is stronger and whether to leave WPML for Polylang.

Thanks

January 1, 2023 at 3:47 pm #12736517

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. The category slug should be unique; this is the default behavior of WordPress. A category in the secondary language is still a new category for WordPress that’s why it cannot have the same slug.

But there is a workaround for this: if you edit the taxonomy via the "quick edit" option, you should be able to change the slug and use always the same. You can do this by following the below steps:

1. Go to the Taxonomies list page.

2. Select the secondary language using the admin language switcher.

3. Press the Quick Edit link on the category in which you want to update the slug.

4. Update the slug and press the Update Category button as you can see in the attached screenshots.

This issue was also reported to our developers, you can see more details here:
https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/

Please let me know if this resolves your issue or if you need further assistance.

Thank you

Quick edit category.png
rename category slug.png
now you can keep the same slug.png