How to Add Infinite Scroll to Blog Posts in WordPress?

Key Takeaways

  • Nexter Blocks includes a Post Listing block that allows users to easily implement infinite scroll on their WordPress blog.
  • Users can set how many posts load at once on scroll in the Post View OnClick / OnScroll field of the Post Listing block.
  • To enable infinite scrolling, users must set a lower number in the Maximum Posts Display field than the total number of posts.
Table of Contents

Infinite scroll is a popular way to display blog posts on a website, as it allows visitors to view content without manually clicking through pages or buttons. By implementing infinite scroll on your WordPress blog, you can improve the user experience and keep visitors engaged for longer periods of time.

Luckily, with the Post Listing block from the Nexter Blocks, you can easily add an infinite scroll feature to your blog post listing.

To check the complete feature overview documentation of the Nexter Blocks Post Listing block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure its installed & activated to enjoy all its powers.

To do this, add the Post Listing block on the page, and select the appropriate listing type, post type, style and layout.

Note: Lazy Load is unavailable in the Carousel layout and Single Page Related Posts type listing.

Then go to the Extra Options tab and select Lazy Load from the More Post Loading Options dropdown.


post listing layout lazy load new

In the Post View OnClick / OnScroll field, you can set how many posts will load at once on scroll.

From the All Post Loaded Text field, you can change the text that appears when all posts are loaded.

From the Disable Animation toggle you can disable the post loading animation, so the new posts will load without any animation.

Now go to the Query tab and set a maximum number of posts to be displayed on a page in the Display Posts field.

post listing layout query display posts new

Depending on the number of posts you have and the number set in the Display Posts field, you’ll see posts loading automatically as you scroll down.

Note: To have infinite scrolling, you must set a lower number in the Maximum Posts Display field than the total number of posts.

post listing lazy load demo

Also, check How to Add Load More Button in Blog Posts in WordPress.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if infinite scroll is not working on my blog posts?

If infinite scroll isn't functioning, check the Display Posts field in the Query tab. Ensure that the maximum number of posts displayed is lower than your total posts. If this setting is incorrect, infinite scroll won't trigger as expected. Additionally, verify that Lazy Load is enabled in the Extra Options tab under More Post Loading Options.

What is the best way to configure the number of posts that load on scroll?

In the Post View OnClick / OnScroll field, you can specify how many posts will load at once when users scroll. A common practice is to set this number to a manageable amount, such as 5 or 10, to ensure a smooth user experience without overwhelming visitors. Adjusting this setting can help maintain engagement without causing performance issues.

What happens if I set the Maximum Posts Display field to a number higher than my total posts?

If you set the Maximum Posts Display field to a number greater than your total posts, infinite scroll will not function correctly. The system will load all available posts without triggering the scroll effect. To ensure proper functionality, always set this number lower than your total posts.

Last reviewed: April 15, 2026

Related Docs