Autoload Next Post

Advanced Features

The Autoload Next Post feature automatically loads the next blog post when a visitor scrolls to the bottom of the current post. Instead of clicking a "Next Post" link, the new post content appears seamlessly below - creating an infinite-reading experience similar to social media feeds.

This feature is disabled by default and works on single blog post pages only.

#How It Works

  1. The visitor reads a single blog post and scrolls toward the bottom.
  2. When the end of the post content comes into view (120 pixels before the bottom), an AJAX request fires to fetch the next post.
  3. A loading indicator appears briefly while the content loads.
  4. The next post full content is inserted below the current post.
  5. All theme features reinitialize on the new content: animations, lazy loading, parallax effects, sharing buttons, and scroll tracking.
  6. The process repeats as the visitor continues scrolling.

#Limits and Behavior

  • Maximum 5 auto-loads per session - After five posts have been loaded automatically, the feature stops to prevent excessive network requests and memory usage.
  • Chronological order - Posts load in chronological order (next published post).
  • No duplicate loading - Each post is tracked and will not be loaded twice in the same session.

#Settings

Navigate to Appearance > Customize > Single Post > Navigation tab to enable the feature.

Setting

Type

Default

Description

Auto Load Next Post

Toggle

Off

Enable or disable automatic loading of the next post on scroll.

This feature requires GSAP ScrollTrigger to detect when the visitor reaches the end of the post. Make sure your theme scripts are loading correctly. If you have disabled smooth scroll or page transitions, auto-load still works using the native scroll position.

#What Reinitializes

When a new post loads, the following features are automatically restarted for the new content:

  • Entry content animations
  • Image lazy loading
  • Parallax effects
  • Post tag functionality
  • AddToAny sharing buttons
  • Scroll-to-top progress tracking

This ensures each auto-loaded post looks and behaves exactly like the original post the visitor navigated to.

Last updated

Was this article helpful?

FIND THE ONE THAT FITS YOUR PROJECT

Import a demo, swap the content, adjust the layout. Modern WordPress under the hood, fast even when the site fills up.