Skip Navigation

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

Problem:
The client was experiencing an issue where category slugs were automatically translating to Chinese instead of remaining in English, the default language. They wanted all page/post/category slugs to be the same as the default language.

Solution:
First, we suggested that the client make a minor change to the original language of a page and then update the translation to see if the slug would correct itself. If this did not work, we offered to investigate further by requesting temporary access to the site.

Upon further investigation, we found that WordPress requires unique slugs for each language, which is why WPML adds a language code at the end of the slug to make it unique. To display the same slug in other languages, the client can quickly edit the slug of the category by switching to the preferred language from the Top Bar. We provided a video guide for this process: https://www.awesomescreenshot.com/video/14386542?key=c0348ab1e654dbacefff878c6178904e.

For title slugs translated via ATE, the client can copy the same value from the English field to share it with the translation.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still experiencing issues, 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. If necessary, please open a new support ticket in the WPML support forum: 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.

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 1 month ago.

Assisted by: Mateus Getulio.

Author Posts
April 18, 2024 at 1:18 pm #15538999

tropiconD

Hello,

Thanks always for the guide. I am making good progress.

I now have an issue with the category slugs. The category slug is translating automatically to Chinese. I read in the forum - https://wpml.org/forums/topic/keep-slugs-in-english/ that I can set "Encode URLs" to YES for all languages (except the original) and then under PAGE URL, I should set it to "Copy from original language if translation language uses encoded URLs". I had earlier set this to "Translate (this will include the slug in the translation and not create it automatically from the title)" when I was trying to fix only the page URL.

I did follow the guide in that forum and this is now what I get:

1. All page/post/category slugs are now in Chinese.

What I want: All the page/post/category slug should be same as the default language.

I will appreciate a thorough guide on this.

Thanks

April 18, 2024 at 1:50 pm #15539353

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

As a test, can you pick one of the pages where the slug is wrongly translated and make a minor change to the original language, like adding an empty space for example?

Then, please edit the translation and save it to update the translation.

After that, please check if the slug is fixed.

If not, I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

April 22, 2024 at 10:42 am #15549687

tropiconD

Hello Mateus,

Thanks for the fix and guide. It worked. Thanks

April 22, 2024 at 5:03 pm #15552408

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Glad that we are able to resolve this together.

I hope we are good to close here =)

Feel free to contact us any time if you need assistance with our products.

Kind regards