Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 replies, has 0 voices.

Last updated by Long Nguyen 3 weeks, 5 days ago.

Assisted by: Long Nguyen.

Author Posts
April 13, 2026 at 8:59 am #17965258

alexandreL-23

Hi, I'm reaching out cause my company is about to release the Portuguese version of one of our commercial WordPress + WPML websites.

The problem, is that when we add the language "Portuguese (Portugal)" in the Languages WPML dashboard, it has the effect to make all content of that language available via : hidden link, the "pt-pt" is a problem for us.

The other languages have 2 letters slug, such as /de for German; /fr for French, which is OK, but we know we will not have the 2 Portuguese language (Portugal and Brazil), only one will be available, so we want /pt, the 2 letters slug, and make everything works like a charm.

The page of the manipulations:
/wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Flanguages.php&trop=1

Please help by telling us how to perform the manipulation making it work as we want.

April 14, 2026 at 2:42 am #17967263

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Alexandre,

I'm Long from the WPML Development team, I'm happy to help you with this issue.

The default language code in WPML settings for Portuguese (Portugal) is `pt-pt` and for Portuguese (Brazil) is `pt-br`. If you want to have the `pt` language code, you need to create a custom language. I suggest you follow steps below and let me know if it helps:

1. Revert the changes in the table wp_icl_languages.
2. Go to admin area > WPML > Languages > Click on Edit languages > Create a new language with language code `pt`. Please notice that the language code won't be changed.
3. Translate your content into the new language `pt`.
4. Consider removing all content of the language `pt-pt`.

Please read more about custom language and removing content in the documentation
https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/
https://wpml.org/faq/how-to-completely-remove-a-language-from-your-site/

Note: If you have already translated some content (posts, pages ...) from the original language to the Portuguese language `pt-pt` using the automatic translation and language mapping Portuguese (Brazil), you can use the same language mapping for the custom language Portuguese `pt` and translate the content automatically again using the translation memory in ATE without being charged for the same content.
Following the documentation
https://wpml.org/documentation/automatic-translation/using-automatic-translation-with-custom-languages/#important-considerations-when-mapping-languages
https://wpml.org/documentation/translating-your-contents/how-wpml-keeps-track-of-your-translations/

Looking forward to your reply.
Thanks

The topic ‘[Closed] Need to make the slug /pt/ instead of /pt-pt/’ is closed to new replies.