WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Infinite-Scroll
Infinite Scroll Fix - Pages with custom queries (2 posts)

  1. noahmason
    Member
    Posted 2 years ago #

    I ran into an issue when creating a page with custom queries and I noticed that infinite scroll wasn't working. In fact when I inspected the page I realized that the plugin wasn't being loaded at all, but was working fine on the rest of the site.

    I then looked into the plugin code and found out it doesn't load "Single Posts" or "Single Pages", so I commented that block out on line number 307 and voila it all worked!

    P.S.

    In my template I had to make sure that my "no content" template only loaded on the first page, otherwise it just kept loading that template over and over.

    https://wordpress.org/plugins/infinite-scroll/

  2. eager
    Member
    Posted 2 years ago #

    thanks,I fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic