• I would like to show specific pages on another page in two or more languages while the menu and everything is translated in the language chosen.

    The code below does the job for the_content but I’m using acf with qtranslate, how would I pull from database the_field but only in a specific language ex. ‘fr’ ? And echo it on lets say english page?

    <?php
    $id=5; $post = get_page($id);
    $content = qtrans_use('fr', $post->post_content,false);
    echo $content;
    ?>

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘qtranslate acf – get specific pages on another page by language’ is closed to new replies.