Published on Apr 18, 2020

Fixing the Pagination issue for Custom Loops on Static Homepage + Infinite Scroll in Oxygen

Sridhar Katakam

This premium members-only tutorial provides the steps to fix the pagination links not showing the correct set of posts when a custom query/loop is used on a Page that is set as static front page in WordPress.

We shall add Easy Posts in Oxygen for showing a grid of posts and use Infinite Scroll and set up a "click to load more" feature.

Step 0

The prerequisite for this tutorial is that you have already created a static Page titled, say "Home" and set it as the Homepage at Settings > Reading. Do so if you have not already.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Fix pagination for custom loops on static Homepage

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-ocalendar-check-omagnifiercrossmenuchevron-downarrow-right