Simplissite

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Multi-language front page #52888
    Simplissite
    Participant

    Hi @cicero,
    With the last version of Fluida, the code I use is :

    if ( function_exists( 'pll_get_post' ) ) {
        $page = get_post( pll_get_post($pageid, get_locale()));
        $pageid = pll_get_post($pageid, get_locale());
     } else {
        $page = get_post( $pageid );
     }

    Maybe it will resolve for the title.

    Website: www.simplissite.com/traduction-de-page-daccueil-theme-fluida

    in reply to: Multi-language front page #43882
    Simplissite
    Participant

    Hello,
    Thank you for your theme.
    I had a similar problem. With Polylang, my pages selected in Featured Icon Blocks stay in french instead of the same instance in english.
    I resolved it by replacing in /includes/landing-page.php in function fluida_ipblocks() :
    $page = get_post( $pageid );
    by

    if ( function_exists( 'pll_get_post' ) ) {
    $page = get_post( pll_get_post($pageid, get_locale()));
    } else {
    $page = get_post( $pageid );
    }

    Surely there is a better solution but in the meantime, it may help someone else…

    Website: www.simplissite.com/traduction-de-page-daccueil-theme-fluida

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