This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is creating a new website using WordPress and wants to use WPML to manage different versions for the US and UK. They are concerned about the URL structure because the language code 'uk' is typically used for Ukrainian, and they want to use it for the UK version of their site.
Solution:
We recommend not altering the WPML languages table to change the Ukrainian language code to something else and then creating a custom language for 'uk'. This is because 'uk' as a language code for Ukraine is an international standard. You can use "en" or "en-gb" for Great Britain. For the US version, you should use the custom language code "en-us".
Using incorrect language codes can negatively impact SEO by causing incorrect targeting, poor user experience, duplicate content issues, and hreflang tag errors. To avoid these issues, ensure you use the correct language codes and implement hreflang tags properly. This will help search engines understand which version of your content to show based on language and location.
For more details on setting up custom languages, visit:
WPML Custom Languages Setup Guide
For information on country codes, refer to:
Country Codes Reference
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.
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.