In my example you can see that i have to paginate posts from category 6 with
Now it works like it paginates the whole category, and then exclude from each page non-appropriate posts for searching
So if i set
'posts_per_page'=9 for the query and i have 12 posts of current category, 2 of them are located on the 1st page and have
meta_value="izhs" (which i'm querying) and on the 2nd page there are also some posts appropriate to searching meta-value (no matter how much).
As a result i receive on the 1st page only these 2 posts, while there are some posts i need on the 2nd page and my pagination of 9 posts per page seems to be broken.
Thanks a lot.
$args = array( 'post_status'=>'publish', 'post_type'=>'post', 'orderby'=>'post_date', 'order'=>'DESC' , 'posts_per_page' => 9, 'paged' => get_query_var('paged'), 'meta_key'=>'dachaIzhs', 'meta_value'=>'izhs', 'cat'=>6 ); $query = new WP_Query ( $args ); while ( $query->have_posts() ) : $query->the_post(); // bla bla endwhile;