Infinite Scroll Block
Infinite Scroll Block
Description
Adds an infinite scroll block to the full site editor that can be placed inside a Query Loop to replace classic pagination.
The blocks frontend script will detect when the user is 1200px (default value) from the infinite scroll block before fetching more posts so it is best to place it right after your theme template block. In addition to the Infinite Scroll Block, 2 optional blocks also are included:
- Loading Posts Block: Container that will display its content while more posts are loading
- No More Posts Block: Container that will display when there are no more posts to load in
Additional Notes
- Adding more than one Post Template Block to a Query Block has undefined behavior.
- Adding more than one Infinite Scroll Block to a Query Block has undefined behavior.
Reviews
Just works!
By taddis on November 12, 2024
New:ish to WordPress and especially to FSE and Gutenberg block editor.
Easy way to get infinite scroll working in your FSE theme.
Cheers!
It works but
By Maria (maenmiu) on November 1, 2024
It works but it interferes with w3 total cache lazy load images.
I could only make it load the posts properly by disabling the image lazy load from the W3 total cache settings, which is not ideal, but it is the ONLY infinite loop block that actually works.
SO SIMPLE. WORKS WITH NATIVE WP EDITOR. BRILLIANT!
By James Revillini (jrevillini) on August 5, 2024
This plugin and the new block you created works so well. FINALLY, a plugin that doesn't reinvent the wheel, just upgrades the rims!!! Made my day.
One funny thing I noticed that has nothing to do with functionality - if I don't have your plugin loaded and I hit the [+] button in the editor and type Infinite, your plugin comes up under a different name - I think it said "No more posts" hahahahah ... but same icon, same ratings.
❤️❤️❤️❤️❤️
By ggong5 on March 6, 2024
This plugin saved my life. Thank you very much.
Issue with list block
By frankychambers on December 14, 2022
- I have a blog page, with 2 columns and 4 items per page.
- When there is a list block in post number 5, the list flows out.
- It's ok if there is a list block in post number 4.
Works perfectly!
By spidrweb on November 21, 2022
Changelog
1.0.1
- Fixed issue where a list element inside of a posts content would be stripped out and placed into the query block list
1.1.0
- Fixed issue where sticky posts would we included in every single fetch request
- Fixed infinite loop where sticky posts would continue to load even after all posts have been loaded
- Removed throbber editor panel because it was not intuitive to use (kept styles for backwards compatibility)