I'm using the infinite scroll plugin and on some pages it just scrolls forever and is not showing the "No more posts to load" message.

Happens with newest WordPress version and also with the twentyeleven theme.

Anybody knows this problem?
How can I make this work?

  • 2
    Which plugin exactly? Had you tried contacting its developers? Can you provide URL to live example?
    – Rarst
    Commented Jul 10, 2013 at 12:22
  • Any chance you are using wpml for translation and it only happens on pages that are in a non-primary language?
    – s1lv3r
    Commented Jul 10, 2013 at 17:20
  • Yes, I have the wpml plugin installed.
    – user35119
    Commented Jul 11, 2013 at 13:25

1 Answer 1


I think I already had this problem some month ago.

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

The problem in this case was 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.

  • 1
    Quite the astonishing guess, that this must be a WPML conflict, given that the OP didn't mention it. The workaround you provide also appears solid. You'd surely have my upvote - if it wasn't for the pastebin. Please include code here instead of relying on an external (and possibly temporary) source. Commented Jul 11, 2013 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.