Manually Add Numeric Pagination In WordPress Themes-Pak Coders

This is Shaib Abdul. Today I am sharing with you How to Manually Add Numeric Pagination In WordPress Themes
First we will show you how to manually add numeric pagination in your WordPress themes. This will benefit our advanced users, and users who are learning theme development, or want to do this without relying on a third party plugin. Lets get started by adding the following code in your theme’s functions.php file.

To add this in your templates, you will have to add the following template tag in your theme’s index.php, archive.php, category.php, and any other archive page template.

Now that we have got our list of numbered pages, we need to style this list. We want to make the list appear in-line block where the active page is highlighted with a different background color. To accomplish that, lets go ahead and add the following in your theme’s style.css file:

Screen Short of Numeric Pagination:

Numeric Pagination





Skip to toolbar