• Hi,

    It’s a strange behavior of WP-Pagenavi or maybe WP. According to the authors (scribu) -> http://scribu.net/wordpress/wp-pagenavi/wpn-2-74.html it says you must include 'paged' => get_query_var('paged') as an extra parameter to the query_posts().

    I have an archive page where user’s can set multiple filters based on Category and Tags and all the code is strictly by WP API standards ie. query_posts() and setting query vars as defined in WP_Query. The query works fine on the first page for eg. this is the output of $wp_query->query

    Array
    (
        [tax_query] => Array
            (
                [0] => Array
                    (
                        [taxonomy] => taxonomy_videos
                        [field] => slug
                        [terms] => kickboxing-muaythai-videos
                    )
    
            )
    
        [post_type] => videos
    )

    On pagination the query is obviously reset or gets lost and it starts to show all the posts. I have even tried the recommended approach from author but doesn’t work. Category and Tags are the only filters, the query is build up to make both of them work concurrently…

    Any help is appreciated…

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-PostNavi] persisting query_posts or custom queries’ is closed to new replies.