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.

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by shulaR 1 year, 10 months ago.

Assisted by: Nicolas V..

Author Posts
July 28, 2023 at 12:40 pm #14117283

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hi John,

Language code and hreflang are two different things.

Language code is used in the database and in URLs for people using repertories - for example /en or /it - but it's not your case here.
Hreflang is the important one which helps Google to understand the different languages for the same piece of content.

<link rel="alternate" hreflang="en-gb" href="<em><u>hidden link</u></em>" />
<link rel="alternate" hreflang="ga" href="<em><u>hidden link</u></em>" />
<link rel="alternate" hreflang="it" href="<em><u>hidden link</u></em>" />
<link rel="alternate" hreflang="ar" href="<em><u>hidden link</u></em>" />
<link rel="alternate" hreflang="en" href="<em><u>hidden link</u></em>" />
<link rel="alternate" hreflang="x-default" href="<em><u>hidden link</u></em>" />

You can see that "en" is used for your .us domain.

You can learn more here: https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/#language-configuration-fields-defined

July 28, 2023 at 2:10 pm #14117809

shulaR

Hi Nicolas,

Thank you for clarifying and all your help with this. Greatly appreciated.

Cheers

John