Multiple domains for languages
-
Hello,
I have a domain exampletestdomain.cz whose primary language is Czech.
The other two domains exampletestdomain.pl and exampletestdomain.eu are Polish and English site mutations.I managed the first configuration (same directory for all translations), but I am solving the problem that WordPress generates links based on exampletestdomain.cz, even though they go to other language mutations.
The PL version of the page/article/custom post is then with a link
exampletestdomain.cz/polish-pageinstead of the correct one
exampletestdomain.pl/polish-page (if I enter this URL manually, it works)
It’s the same with English version.
A situation often arises when I have content in one of the translation languages, but the rest of the page (menu, footer, etc.) is in the primary language (CZ).
I’ve tried possible and impossible solutions (2 days of searching and testing), but I’m not able to find any workable and more sophisticated solution than manually writing the complete URL to the language mutation.
get_post_permalink() simply returns the .cz domain even in cases where it should call .pl or .en.
I will be glad for your help.
- You must be logged in to reply to this topic.