How to add a Page number with WP- PAGENAVI on wordpress
welcome to jobzone Today i discuss How to add a page number with wp-pagenavi on
when i started in my own blog i don’t know how to add a page number display in my site. i have
search in google how to set and it really help to my visiter to easily to select my page.
So adding a page number features to your WordPress site aims to make it easier for readers to navigate
your site and when they want to move from the first page to the last page or even jumping to the
page they want.
In some certain themes there are already add page number features but if you wordpress themes
displayed is the default built in features like this Older post and Previous post see below pic
How to add a page number with wp-pagenavi on
Add a page number in WordPress , the follow the step
You need to do Install and Activate the Wp- pagenavi plugin and After activating the plugin
Go to settings and select Pagenavi to configure the plugin settings.
On the PageNavi setting plugin setting page you can change the Default text and numberic pagination
setting as you want see the below picture.
next step you have to go to https://wordpress.org/plugins/search/
and search plugin wp page nav and open this plugin
Next step copy the code and replace it.
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
You would replace those two lines with this:
<?php wp_pagenavi(); ?>
Go to appearance and select editor and find main Index.php and select button Navigation.php
and find the above code and replace those two lines see above picture and after see pic 2. and update it.
This is an easy way to add page number features to your wordpress themes with Wp-pageNavi plugin. i hopefully this article is useful for you and any problem comment below.
Join your facebook pages