I’ve added infinite-scroll.js library to WordPress (manually, not via plugin). On index i have wrote a loop to make the pagination and everything works fine, however then i’m accessing URL/page/2 directly not from index i see that it is broken. Any ideas how to avoid this? Maybe doing some redirect to index when accessing page/x/ or any other way? Or maybe it is possible to preload everything from index (page1) and continue loading on page/2?
Also tried if is_paged -> when redirect to index on index.php template file. This method works, but of course infinite-scroll doesn’t load any new items.
- The topic ‘Accessing /page/2 on WordPress directly breaks infinite-scroll’ is closed to new replies.