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

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Andreas W. 1 year, 5 months ago.

Assisted by: Andreas W..

Author Posts
June 9, 2023 at 9:00 am #13797981

anil-kumarS

Hey, I want to change the hreflang, right now it's 'nl' & 'be', we wants to change that to 'nl-Nl' & 'fr-BE' respectively, But i'm not able to change I'm getting a message hreflang already used and the capital letter are visible in capital, they are visible in small caps, Please help me with this

June 10, 2023 at 5:03 pm #13803769

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It is an international standard that the hreflang and language code are written in small caps.

The possible reason for the error that you are receiving is that WPML comes with the pre-defined language "Dutch" and this value is already assigned to this language inside the database.

A workaround, that is not really recommended, would be to go inside the database table wp_icl_language and change the default values there.

IMPORTANT: Only make sure if editing this table to NEVER change the language code, as it would destroy all connections between contents for this language.

As long the value will not exist in this table, you will be able to use it for your custom languages.

I hope this is helpful - let me know if further assistance is needed.

More details about pre-defined languages:
https://wpml.org/documentation/getting-started-guide/language-setup/pre-configured-languages/

Best regards
Andreas

The topic ‘[Closed] Updating hreflang’ is closed to new replies.