unsolved problems with pagination using query_posts(array
-
I have seen many problems with people reporting pagination problems, basically the 2nd, 3rd or 4th pages showing posts identical to the first page.
This issue has been resolved but have not seen a solution for those using arrays.
<?php $post = $wp_query->post; $limit = get_settings('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array('category__and' => array(22,24))); ?>
This is the code i have in my category page, and it is showing 10 posts (by default) when i click on page 2 it shows the exact same posts as page 1. Iam using the WP Navi plugin.
However i have another category page not using arrays since it only pulls posts from one category, but the pagination works fine, here is the code:
<?php $post = $wp_query->post; $limit = get_settings('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('category_name=Apartment - Flat&showposts='.$limit.' paged=' . $paged); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘unsolved problems with pagination using query_posts(array’ is closed to new replies.