wp_pagenavi() with custom wp_query()?

wp_pagenavi( array( 'query' => $loop ) );

should work with the code above. Don’t hijack the main query if you can avoid it.

Leave a Comment