Skip to content Skip to sidebar

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

Problem:
The client is experiencing an issue where after switching from the Linguise language plugin to WPML, the URL slug for Portuguese changed from 'pt' to 'pt-pt', and they want to revert it back to the original 'pt' slug.
Solution:
If you're experiencing this issue, we recommend creating a custom language in WPML where you can specify the desired language code. Here's how you can do it:
1. Go to WPML > Languages.
2. Under 'Edit Languages', click on 'Add languages'.
3. Enter the language name, code (in this case, 'pt'), and other details.
4. Save your changes.
This should help you set the URL slug to your preferred format.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the issue persists, please open a new support ticket at WPML support forum for further assistance.

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 replies, has 0 voices.

Last updated by Lauren 3 months, 2 weeks ago.

Assisted by: Lauren.

Author Posts
January 8, 2026 at 8:28 pm #17714314

harunG

Hello, since I previously used the Linguise language plugin, the Portuguese indexed pages were at hidden link, and now that I have started using WPML, in Portuguese, it became hidden link

I want to change it back to the old slug, that is: hidden link

I would appreciate your help with this.

Thank you very much in advance for your response.

January 8, 2026 at 9:38 pm #17714499

Lauren

Please let me know if the new custom language resolved the issue and if not, we will be happy to further assist.