How To Add Numbered Page Navigation To WordPress

If your WordPress blog has a large amount of blog posts, then you should add a numbered page navigation to your WordPress for easy navigation. Your audience deserves a better navigation through your blog pages and archives. The default WordPress pagination comes with “older posts” and “newer posts” text, which is just too simple.

In this tutorial, I’ll learn how to add numbered page navigation to your WordPress manually (without a plugin) and automatically (with a plugin). Let’s get started:

With A Plugin

There are tons of plugins in WordPress’ Plugin Directory but most of them would disappoint you with less and useless features. but WP-PageNavi is the best plugin in the entire world for this task. You can download WP-PageNavi plugin from this link or you can also search the plugin from your WordPress.

Without A Plugin

You can also add numbered page navigation to your WordPress by following these steps:

First, add following code to your current theme’s functions.php file:

Save your functions.php file. One-by-one open index.php, archive.php, search.php, and loop.php (only if exist) and replace “older posts” or “older entries” lines with following code:

That’s it. Now, we will stylify our page navigation with some CSS. Add following CSS add the bottom of your theme’s style.css file:

Save it & that’s it!