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.


My name is Mario Peshev, a global SME Business Advisor running digital businesses for 20 the past years.

Born in Bulgaria, Europe, I gained diverse management experience through my training work across Europe, North America, and the Arab world. With 10,000+ hours in consulting and training for organizations like SAP, VMware, CERN, I’ve dedicated a huge amount of my time to helping hundreds of SMEs growing in different stages of the business lifecycle.

My martech agency DevriX grew past 50 people and ranks as a top 10 WordPress global agency and Growth Blueprint, my advisory firm, has served 400+ SME founders and executives with monthly ongoing strategy sessions.


Follow me at:

Latest Editions:

Browse by Category

Latest Answers: