Why doesn't it work on singular pages? (4 posts)

  1. Dartanjan
    Posted 3 years ago #

    I don't see a reason why the plugin wouldn't be working on singular pages, since many themes show custom archives using Page Templates.

    The function shouldLoadJavascript returns false if is_singular(). Could it at least provide a filter, so that a theme can override?



  2. thisismyalterego
    Posted 3 years ago #

    Just replace false with true in that specific function.
    I've modded my page like this and never experienced any problems so far.

  3. nanoo_k
    Posted 2 years ago #

    thisismyalterego, did you get Infinite Scroll to work on single.php pages (single posts as opposed to single pages)?

    I'm trying to get Infinite Scroll to work with single posts. Here's what happens: a single post is loaded. I scroll to the bottom and one extra post is loaded. Then I scroll to the bottom again and no more posts are loaded.

    I have a couple ideas about why this happens:

    1. Only two posts are loaded onto a single.php page, so Infinite Scroll only has one extra post to include. In which case I could try to include more posts into the page's main query (so far I've been unsuccessful).

    2. Infinite Scroll is activated by some mechanism that isn't reproduced when it displays the second post. For example, Infinite Scroll maybe grabs the URL from the "Next Post" button and retrieves that post to display. If no extra "Next Post" button is created then Infinite Scroll will have no more posts to work with. If this is the case, I'm not sure what to do.

    Does anyone have any advice?

    Right now I'm reading this tutorial to find more clues. http://www.netmagazine.com/tutorials/master-wordpress-loop

  4. Andrew Tibbetts
    Posted 2 years ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Infinite-Scroll
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic