next_posts_link repeating same posts on each page
-
I am pretty new to php and wordpress but i have my site just about finished except the next_posts_link and previous_posts_link seem to be repeating the same posts on each page and i can’t seem to figure our how to fix it.
The code from my index.php is below. Any advice is appreciated!
<?php get_header(); ?> <div id="content"> <!--index.php--> <?php if (have_posts()) {query_posts('cat=13');} ?> <!--the loop--> <?php while (have_posts()) : the_post(); ?> <!--post title as a link--> <div id="post-<?php the_ID(); ?>" class="small"> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <!-- Get the Thumbnail --> <img src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" alt="<?php the_title(); ?> <?php _e(''); ?>" height="150" /></a> <!-- set the read more link --> <?php excerpt(75); ?> </div> <!--end of one post--> <?php endwhile; ?> </div> <!--navigation--> <div id="Navigation"> <style type="text/css"> h6 {text-align:center; font-size:75%; font-family:Arial,Verdana,Sans-serif; color:#000} p.date {text-align:right} p.main {text-align:justify} </style> </div> <!--do not delete--> <?php else : ?> Not Found Sorry, but you are looking for something that isn't here. <?php include (TEMPLATEPATH . "/searchform.php"); ?> <!--do not delete--> <?php endif; ?> <!--index.php end--> <div id="navigation"> <?php previous_posts_link('« Previous') ?> <?php next_posts_link('More » ') ?> </div> <!--include footer--> <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘next_posts_link repeating same posts on each page’ is closed to new replies.