• Resolved viktord

    (@viktord)


    Im working on a website that has two languages EN/RU. English works fine. Also RU translation works fine the very first time clicking on RU page, but then when i click on any button it goes back to EN page. I think because under setting/general tab, there’s only one page that could be selected from the “Front End PM Page”. Is it possible to have an option to select different pages for different languages.

    Thanks much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    Which plugin you are using for multi-language setup?

    Thread Starter viktord

    (@viktord)

    I’m using polylang plugin.

    Plugin Author Shamim Hasan

    (@shamim51)

    add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_page_id_filter', function( $page_id ){
        if( $page_id && function_exists( 'pll_get_post' ) ){
            $page_id = pll_get_post( $page_id );
        }
        return $page_id;
    });
    

    Let me know.

    Thread Starter viktord

    (@viktord)

    Yes that worked. Thanks

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

The topic ‘Translation’ is closed to new replies.