WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
[resolved] Blog lists all posts (doesn't filter by language) (4 posts)

  1. finch13
    Member
    Posted 1 year ago #

    Hi!

    I'm usig static front page with custom permalinks /%postname%/

    I have three languages installed, three main pages and three empty blog pages for each language. Everything was fine with WP 3.5 and Polylang 0.9.8

    After upgrade to WP 3.5.1 and Polyang 1.0 I see all posts from all languages on every blog page. Everything else works fine (i.e. archive by year).

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    Is your problem happening on the page defined as 'posts page' in the Reading settings?

    Could you try to edit the file polylang/include/core.php at line 486 and replace:

    $query->is_singular = $query->is_page = true;

    by

    $query->is_singular = $query->is_page = false;
  3. finch13
    Member
    Posted 1 year ago #

    Thank you! This works for me.

    And yes, the problem was on the page defined as 'posts page' in the Reading settings.

    Will you fix this in next release, or is this a by-design behaviour?

  4. RavanH
    Member
    Posted 1 year ago #

    Yes, seeing this issue too on a clients site... In fact, it was showing all posts and all pages too. I can confirm the fix works :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags