WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] two navigation in one page ! (4 posts)

  1. jimmyphong
    Member
    Posted 1 month ago #

    im using custom query to get two categories to display in custom page !

    so how can i get it work for two custom query

    when i using get query var page for query one , it also get for query two how can i fix it !! thanks
    `if( get_query_var( 'paged' ) )
    $args['paged'] = get_query_var( 'paged' );

    else {
    if( get_query_var( 'page' ) )
    $args['paged'] = get_query_var( 'page' );
    else
    $curentpage = 1;
    set_query_var( 'paged', $curentpage );
    $args['paged'] = $curentpage;
    }

    https://wordpress.org/plugins/wp-pagenavi/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 month ago #

    This has nothing to do with the plugin.

    You might want to read http://wordpress.org/support/topic/navigation-not-working-3?replies=1, probably the 2nd link and maybe http://codex.wordpress.org/Class_Reference/WP_Query

  3. jimmyphong
    Member
    Posted 1 month ago #

    Hi Lester Chan thanks for you reply !!
    so can i add query string to pagenavi

    ex : with query post 1 page navi url with query string + &cat=mycat

    with query post 2 page navi url with query string + &cat=mycart

    thank !!

  4. Lester Chan
    Member
    Plugin Author

    Posted 1 month ago #

    Yes you can, then you need to pass in the query_post object as indicated in http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html to wp_pagenavi

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.