WordPress.org

Forums

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

  1. noahmason
    Member
    Posted 1 year 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 1 year ago #

    thanks,I fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic