previous_posts_link() – next page re-displaying same post twice
-
Hi there,
the issue i’m experiencing has to do with the previous_posts_link() function.<?php ##################### ## NEWS & VIEWS ## ##################### if (is_page(59)) { ?> <h1><?php the_title(); //News & Views ?></h1> <?php query_posts('cat=5&posts_per_page=2'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php edit_post_link('↑↓ Edit', '<span class="edit">', '</span>'); ?> <div class="posts"> <?php the_excerpt(); ?> </div> <?php endwhile; else: ?> <?php endif; ?> <?php previous_posts_link(); ?> <?php next_posts_link(); ?>
The link(s) for ‘next’ and ‘previous’ posts are displaying correctly, problem i have is when clicking through to page 2, the first post is being re-displayed..
Any ideas as to why this could occur?
Thanks..
CHEERS!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘previous_posts_link() – next page re-displaying same post twice’ is closed to new replies.