Older/Newer Navigation Not Working
-
When I click on “Older Posts” on my homepage I am taken to /page/2/ but the posts don’t actually get older, it’s just the first two posts again. The same goes no matter which page I go to. I’ve included my index page for good measure. Gracsis.
Here’s one that should be easier, when I click on “Older Posts” on my homepage I am taken to /page/2/ but the posts don’t actually get older. I’ve included my index page for good measure. Gracsis.
<?php get_header(); ?> <div id="content"> <?php query_posts('cat=-14'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="page"> <div class="post"> <div class="comment-bubble"><p><?php comments_popup_link('0', '1', '%'); ?></p></div> <h1><a href="<?php the_permalink() ?>" title="Read <?php the_title(); ?>"><?php the_title(); ?></a></h1> <img src="<?php bloginfo('template_directory'); ?>/images/layout/authors/<?php the_author_login(); ?>.png" alt="Posted by <?php the_author(); ?>" align="left" class="author" /> <?php the_content(); ?> <h3><?php comments_popup_link('Be the first to leave a comment.', 'Add a comment.', 'Read the % comments and add your own.'); ?><br /> Posted <?php the_time('F jS, Y'); ?> in <?php the_category(', ') ?><?php edit_post_link('Edit', ' [', ']'); ?></h3> </div> </div> <?php endwhile; ?> <div id="page-nav"> <div class="older"><?php next_posts_link(' ') ?></div> <div class="newer"><?php previous_posts_link(' ') ?></div> </div> <?php else: endif; ?> <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Older/Newer Navigation Not Working’ is closed to new replies.