• Resolved pshemek

    (@emmek)


    Hello, I have noticed a weird behaviour of Infinite Scroll plugin in connection with WPML.

    In main language it works perfectly. But when I am in secondary language I can load more posts (on click) for infinition. After the last page, the first page is being continously repeated.

    Everything happens in rather standard loop of index.php file on a page set to be the page for posts with standard $wp_query.

    http://wordpress.org/extend/plugins/infinite-scroll/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pshemek

    (@emmek)

    I’m closer to the solution as I found that IS “stopping” depends on getting 404 when requests another page. In my case on secondary language I’m getting the first page instead of “Not found”. I have to resolve it but at least know what is to be resolved. 🙂

    Thread Starter pshemek

    (@emmek)

    WPML staff took this as compatibility issue to be resolved in future versions. For now only some workarounds are possible.

    Thread Starter pshemek

    (@emmek)

    Malte Witt allowed me to share the solution:

    It may help you to add the following code to your themes functions.php: http://pastebin.com/KbjS4ZeG

    The problem is actually located in a wp core function (redirect_canonical() in wp-includes/canonical.php) which tries to “repair” broken/malformed url’s instead of showing an 404 error and ist not behaving in a constant way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Infinite Scroll and WPML – never-ending posts list’ is closed to new replies.