How to Add Page Numbers In WordPress Blog – WordPress Plugin Pagenavi Configuration

pagenavi plugin configuration

By default, WordPress has functions to display links to previous and next pages. This is better than nothing, but I don’t understand why the folks at WordPress don’t build a pagenevi by default. But here is a plugin to display page numbers.

Configuration:

  1. First of all download Pagenavi WordPress Plugin.
  2. Unzip the archive and put the wp-pagenavi folder into your plugins folder (/wp-content/plugins/).
  3. Activate the plugin from the Plugins menu.
  4. Open the file that you want the pagination to be displayed in (e.g. index.php, categories.php, search.php, etc.), and find the following code:
<div>
<div><?php next_posts_link('Previous entries') ?></div>
<div><?php previous_posts_link('Next entries') ?></div>
</div>

Replace Code With.
<?php
include('wp-pagenavi.php');
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
?>

Save all pages. Refresh page.

  1. rahul Reply
    I dont know what you are talking about,you are responsible for confusing the wordpress users by saying something partial instead of explaining step by step on what to do.
  2. luc Reply
    não entendi
  3. wpsupersweep Reply
    Great post - just subscribed to your feed - thank you! The WPSuperSweep is a plugin I recommend for all wp blog owners, I'm using it on all my sites now.
  4. BJ@Street Soccer Reply
    How do I do it if I want to break up the lengthy number of products I have on a page?
  5. vivek kumar Reply
    Nice Post. How u use "Subscribe By Email" Pop-up? Thanks

Leave a Reply

*

captcha *