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.

This topic contains 1 reply, has 2 voices.

Last updated by Mohamed Sayed 1 year, 1 month ago.

Assisted by: Mohamed Sayed.

Author Posts
March 25, 2023 at 3:42 am #13327953

seonghoonh-2

I would like to distinguish the domains of the website written in Spanish by each country.

ex.
es.example.com
mx.example.com
pe.example.com

Is there a relevant document?

March 26, 2023 at 10:50 am #13331273

Mohamed Sayed

Hi there,
Thanks for contacting WPML support and sorry for the late reply due to the higher queue on weekend.

WPML doesn't have an option for setting multiple domains to one language. This would require custom programming work which is beyond the scope of our support.

If you want, you can hire a professional developer who can help you to accomplish this requirement as per your needs. More information is available here: https://wpml.org/contractors/

A workaround is to create a custom language for each country, then you can set a different domain for each of those languages.

Please check this guide for more details about how to create custom languages: https://wpml.org/documentation/getting-started-guide/language-setup/editing-wpmls-languages-table/

Once the country-specific languages are added, you can follow this guide to use a different domain for each language: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

I hope that you will find this information helpful.

Regards,
Mohamed

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.