Post pagination without using plugin

| Last Updated: | In: WordPress, WP Labs

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

Tags: ,

About: Prem Tiwari

Prem Tiwari is the founder of and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.

You may also like:

  • Kayleen

    THX that’s a great anewrs!

Follow us!

Get Free Access of 400+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...


Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...