• Hi Chouby – Thanks for developing such a great plugin.

    Permalinks are set to pretty (%postname%) and I have a static front page.

    I’m using a clean wordpress build (no themes, minimal plugins) to integrate a movie platform of mine that focuses on South East Asia – Thailand, Singapore and Cambodia.

    Within these countries, people will be looking at the site in English and the local language (Thai, Khmer, Chinese).

    Currently my url structure is set up so that the country code is used to show the specific country content, e.g.:

    http://www.moveedoo.com/th/

    http://www.moveedoo.com/kh/

    What I want is for users to be able to see this ‘TH’ country content in either Thai or English.

    This is conflicting with using the %postname% permalink structure in WP, where ‘TH’ is the language code.

    What I’m interested is in knowing how to combine pretty permalinks with using $_GET or %_POST to set the language without needing to have any language code info in the URL at all.

    If I turn off pretty permalinks, I see that using the language switcher works using $_GET – ?lang=eng, etc.

    Any suggestions?

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter metaheavies

    (@metaheavies)

    Just to add, I am using “The language is set from content” but this doesn’t seem to work (i.e. the url is appended with the language code) if I am using pretty permalinks.

    Thanks.

    did you try to clear your browser cache? It could be redirecting you.

    Furthermore, in order to show 2 sets of language content on a page you’ll need to modify the query with pre_get_post filter. You can see this thread for more details.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multi Country / Multi Languages / Permalinks’ is closed to new replies.