[Plugin: wp_pagenavi] don't work with WP_Query
-
hi I have a problem with the query,
<?php $my_query = new WP_Query( array( 'orderby' => 'comment_count', 'ignore_sticky_posts' => 1, 'paged' => get_query_var('paged') ) ); while ( $my_query->have_posts() ) : $my_query->the_post(); ?> <?php echo the_title();?> <?php endwhile; wp_pagenavi( array( 'query' => $my_query ) ); wp_reset_postdata(); // avoid errors further down the page ?>
Links appear, but when I click, it doesn’t pass to the next page.
- The topic ‘[Plugin: wp_pagenavi] don't work with WP_Query’ is closed to new replies.