WordPress.org

Ready to get started?Download WordPress

Forums

012 Ps Multi Languages
012 Ps multi languages: only displays certain pages (5 posts)

  1. Easo
    Member
    Posted 1 year ago #

    Hi,
    I tested this plugin in my localhost (Xampp) with the lastest version of WP (3.5) and everything worked perfectly.

    I am now using it on my online host, with WP 3.3.1 and it only shows the translated pages for the top-menu and some pages linked in the footer, but not the pages of the primary navigation menu.

    Here is the link: http://cristinafisac.com/sviluppo/pellicano

    Does anybody know why?

    http://wordpress.org/extend/plugins/012-ps-multi-languages/

  2. Wang Bin
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Easo
    Member
    Posted 1 year ago #

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

  4. Easo
    Member
    Posted 1 year ago #

    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.

  5. Easo
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic