WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP-PageNavi] Doesn't work

[Plugin: WP-PageNavi] Doesn't work

Viewing 3 replies - 1 through 3 (of 3 total)
  • thedevilz

    @thedevilz

    on my second page link. I got this 🙁

    This is somewhat embarrassing, isn’t it?
    It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.

    thedevilz

    @thedevilz

    my code:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
     $custom_query = new WP_Query( array('posts_per_page' => 2, 'order' => 'DESC', 'paged'=> $paged) );
     while( $custom_query->have_posts() ) : $custom_query->the_post();
    
       //MY POSTS
    
     endwhile;
     /***Pagination***/
     if(function_exists('wp_pagenavi')) {
       wp_pagenavi(array( 'type' => 'multipart', 'query' => $custom_query ));
     }
     wp_reset_postdata();

    whereas first page rocks and cannot recognize second and so on pages

    thedevilz

    @thedevilz

    PROBLEM RESOLVED!!

    IN Admin:
    Setting->Reading:
    I set the “Blog pages show at most” to the minimum

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-PageNavi] Doesn't work’ is closed to new replies.