WordPress custom pagination

When designing a theme pagination is required for listing of posts on the index page.

WordPress, by default, presents only the ability of one to use “Previous page” and “Next page” – which might be enough to navigate through the archives but is however incomplete and annoying. The standard navigation has <<, >> and numbers for the current page and the pages before and after (at some range).

One of the best solutions I have used is the Kriesi Pagination. Kriesi is one of the top sellers on the ThemeForest market with over 25 thousand sales at the moment of this writing. He has been polishing his themes and scripts for the past 2 years on TF which led to highest quality with the latest trends applied in his themes.

Once the function is added in functions.php or whatever your codebase is executed from, the navigation could be called pretty simple:

[php]kriesi_pagination();[/php]

There are two parameters – for number of pages and range. The rest is styling.


Mario Peshev is a serial martech entrepreneur, global business advisor, angel investor, and author, famous for launching a top 20 enterprise WordPress consultancy and authoring the modern startup formation book, “MBA Disrupted.”

His digital footprint includes 25 years of creating and scaling technical solutions, building and growing digital teams, starting and growing companies from zero to seven figures, acquiring and selling assets and businesses, and investing in global startups like beehiiv, doola, the Stacked Marketer, Alcatraz, SeedBlink.

Peshev spent over 10,000 hours in consulting and training activities for organizations like VMware, SAP, Software AG, CERN, Saudi Aramco since 2006. His books and guides are references in over 30 universities in North America, Europe, and Asia.


Follow Mario on social:

Latest Editions:

Latest Answers: