Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wang Bin

    (@ouhinit)

    Hi,
    if you hook route [the_content, the_posts, get_post] the display of posts are displayed correctly.
    To display the title and the content of the default language if there is no title other than the default language and the content of

    Thread Starter Easo

    (@easo)

    Hi Wang Bin, thanks for the advice.
    In wich file do I have to hook that route?

    Thread Starter Easo

    (@easo)

    The plugin works in those pages that use page.php, but it does not work on pages made by me, such us page-home.php.

    Thread Starter Easo

    (@easo)

    Ok I made it!
    Just in case somebody has the same problem, I have change the code I had in my custom pages, it was something like this:
    <?php
    $my_id = 67;
    $post_id_67 = get_post($my_id);
    $content = $post_id_67->post_content;
    $content = apply_filters(‘the_content’, $content);
    $content = str_replace(‘]]>’, ‘]]>’, $content);
    echo $content;
    ?>

    with the loop structure I was using in page.php.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘012 Ps multi languages: only displays certain pages’ is closed to new replies.