• WP-PageNavi is not working.
    please check my code

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

    $loop_query = new WP_Query(
                          array(
                            'posts_per_page' => $args['posts_per_page'],
                            'post_type'      => $args['post_type'][0],
                            'cat'            => $args['cat'],
                            'orderby'        => $args['orderby'],
                            'order'          => ($args['order'] == '') ? 'DESC' : $args['order'],
                            'paged'          => $paged
                            )
                        );

    my loop

    if(function_exists('wp_pagenavi') && $enable_pagination == 'yes'):
              wp_pagenavi( array( 'query' => $loop_query ) );
          endif;
          wp_reset_postdata();

    the pagination is showing at my page.. but when i click next or 2 or any of the number the url change somehow but i got the same page with the same posts.
    i tried unsing wp_reset_query but still not working.

    any ideas?

    Thanks
    Sheldz

  • The topic ‘[Plugin: WP-PageNavi] Not working’ is closed to new replies.