Posts Tagged ‘ wordpress pagination not working ’

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();
     ?>