Wednesday, 13 September 2017


This tutorial will discuss how to add numerical pagination in the WordPress theme, making it easier for readers to move from the first page to the second page or jump to page 5 even though there are so many wordpress templates that still have no default page number. older post and previous post.
page number
page number
page number wordpress style To create a Page number you can use plugins if you want to install in an easy way that is with WP-PageNavi Plugins, but also by adding a script manually to create a page number, to make Page number Without Plugin I will discuss later after the article this. by using an existing plugin called WP-PageNavi. The first thing you need to do is install and activate the WP-PageNavi plugin. After activating the plugin go to Setting »PageNavi to configure the plugin settings.

page number plugins wp-pagenavi tutorialOn the plugin settings page you can replace default text and numerical pagination settings to your liking.
setting page number
setting page number

In the next step, you need to add a php tag script to your WordPress Theme template. search the index.php and archive.php files in the template folder you are using. Add the following tag to your theme to replace previous_posts_link and next_posts_link.
<?php wp_pagenavi(); ?>
If you want to change the design of numerical pagination in wp-pagenavi please edit in Plugins -> Editor -> choose drop down menu Wp-Pagenavi -> select. do css changes according to what you want in wp-pagenavi / pagenavi-css.css file.

see video related to this post, sourced from