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.

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

Tags: ,


About: Prem Tiwari

Prem Tiwari is founder of freewebmentor.com and Software developer from New Delhi (India). Follow Prem's development codes on facebook, and make sure you check out freewebmentor.com for the latest in web development related Tips with the complete code.


You may also like:

  • Kayleen

    THX that’s a great anewrs!

Follow us!

Get Free Access of 350+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

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

SEARCH NOW