A way to keep the ?lang=xx_xx in the address bar with xili_language ?

dev.xiligroup is being renovated Forums xili-language plugin A way to keep the ?lang=xx_xx in the address bar with xili_language ?

This topic contains 0 replies, has 1 voice, and was last updated by  xiligroup dev 11 years, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2790

    xiligroup dev
    Keymaster

    oooh ! from Michel dev.xiligroup

    To complete reading of end part of plugin’s source.. a

    Documentation : A table summarizes all the technical features of this powerful plugin for personalized CMS created by webmaster. is here:

    https://dev.xiligroup.com/?p=1432

    For you case, you don’t need to analyze the URI, you just needs (in your category.php or single.php or elsewhere…) to use the function the_curlang()

    as example I use here to get the (news) id corresponding to the language of the displayed (front) page

    $news_id = get_post_meta($page_front, 'topnews-'.the_curlang(), true);

    In a multilingual loop (category)… language of each post can be find with

    get_cur_language ($post->ID)

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.