Pagination issues with query_posts and paged
-
I have tried everything, but pagination just does not work.
I am using:
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; } query_posts( array( 'paged' => $paged ) ); $args = array( 'cat' => '3', 'post_type' => 'post', 'posts_per_page' => 6, 'category__not_in' => 69, 'offset' => 1, ); query_posts($args); while (have_posts()) : the_post();
And my pagination code is:
<div class="alignleft"><?php previous_posts_link('? Previous') ?></div> <div class="alignright"><?php next_posts_link('More ?') ?></div>
When I go to page 2, the posts are still the same. Anything I should be looking at?
Thanks
Dave
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Pagination issues with query_posts and paged’ is closed to new replies.