Load More loads nothing or repeats the same items

Table of Contents

Symptom

The Load More button spins and adds nothing, or it adds the first page again.

Cause

  • A page cache that ignores the page parameter and serves page one for every request.
  • A random order, which cannot be paginated: the same item can come back on the next page.
  • Before 3.8.0, inline CSS or JavaScript on the page containing the text <body.

Fix

  1. Update to 3.8.0 or newer.
  2. Add vp_page, vp_filter and vp_sort, along with vp-*-page, vp-*-filter and vp-*-sort, to the query-string allow list of your caching plugin or CDN.
  3. Choose an order other than random on a paginated gallery.

The pagination options themselves are described on Pagination.

Was this page helpful?