Post pagination without using plugin

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.

wordpress-paging

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”):

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article 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.

Solved Programs