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

  1. Easo
    Posted 2 years ago #

    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?


  2. Wang Bin
    Plugin Author

    Posted 2 years ago #

    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
    Posted 2 years ago #

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

  4. Easo
    Posted 2 years 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
    Posted 2 years 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:
    $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

  • 012 Ps Multi Languages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic