Add infinite scroll to content splitted post

Your best bet is to use a combination of JS waypoint libraries with the WP Rest API.

When element is visible, fetch content and display. Pretty simple.

Instead of the <nextpage> you could also wrap this in a custom shortcode but this is primarily a JS problem, not really a WP issue.

Leave a Comment