WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Doesn't work (4 posts)

  1. peter.grafico
    Member
    Posted 1 year ago #

    I got a problem with this plugin, when i click the second page, the URL change but shows me the same page (page 1), what could be the problem?
    thanks

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. thedevilz
    Member
    Posted 1 year ago #

    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.

  3. thedevilz
    Member
    Posted 1 year ago #

    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

  4. thedevilz
    Member
    Posted 1 year ago #

    PROBLEM RESOLVED!!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic