WP-PageNavi not working

I also faced same issue. I found solution for this follow these steps

1. After activating the plugin
2. <?php $page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;?> add this code before the query_posts
3. Add the paged=$page argument query_posts like <?php query_posts(“paged=$page&showposts=10”); ?>
4.after while loop add the following code
<?php wp_pagenavi(); ?>                        
//Reset Query
            wp_reset_query();
     ?>

Advertisements
  1. Thanks for quick tip! Good job! 🙂

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: