Post pagination without using plugin

Prem Tiwari - - WordPress, WordPress Snippets

The default WordPress pagination only comes with the “Older posts” and “Newer posts” links at the bottom of the page when you want to navigate to the older entries. If you want to replace the “Older posts” and “Newer posts” with pagging and previous & next button.


Paste below codes to your functions.php file:

If you want to replace the Older posts with paging, then copy bellow code snippets and paste in functions.php file of your current theme. This code will replace the older post text with paging.

CSS Code

You can also customize the style of paging according to your theme color combination. Add bellow css code in your style.css page of your current theme.

Call below function in your theme (typically near the bottom of index.php or category.php where it says “Older posts” or “Older entries”):

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.