Skip Navigation

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 1 year, 8 months ago.

Assisted by: Bobby.

Author Posts
October 13, 2023 at 3:31 am #14569617

cheng-kheek

how to change zh-hans to cn in the URL for example hidden link is the example URL that i want to create while i still want to keep the language that is zh-hans at the backend, i just want to change the URL

October 13, 2023 at 5:30 am #14569699

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

The URL is constructed using the language code.

You can see your language code within WPML->Languages->edit languages.

In order to use 'cn' as the language code you will need to create a new custom language, where you will add 'cn' as the code and 'zh-hans' as the default locale.

Note: you will first need to edit the current language and remove zh-hans, change it to something else, save, and then add this locale to the new custom language.

Once done you can go to WPML->Translation Management->Bulk select your pages/posts and duplicate tthem from the old language to the new custom one.

The topic ‘[Closed] how to change zh-hans to cn in the URL’ is closed to new replies.