Viewing 1 replies (of 1 total)
  • By default, wp_pagenavi() works only with $wp_query, normally set by query_posts(). When you use WP_Query(), you create your own object, not $wp_query. So, you have to pass that to wp_pagenavi().

    Call wp_pagenavi() like this:

    wp_pagenavi( array( 'query' => $loop ) );
Viewing 1 replies (of 1 total)

The topic ‘PageNavi not working’ is closed to new replies.