Older entries link not working
-
Hope somebody can tell me what is wrong here. This loop displays the latest 7 posts, and also displays an “older post” link at the bottom of the page, which brings me to: mysite/blog/page/2/. But this shows me the exact same 7 posts as the previous page (mysite/blog/).
Note: /blog is a custom page with its own template: loop below.
<?php if(have_posts()) : ?> <?php query_posts('showposts=7&paged=');while (have_posts()) : the_post();?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content('Read the rest of this entry ??Ω'); ?> </div> <p class="postmetadata"><?php the_time('F jS, Y') ?> | Posted in "<?php the_category(', ') ?>" | by <?php the_author() ?> | <?php edit_post_link('Edit','',' |'); ?> <?php comments_popup_link('No Comments ', '1 Comment ', '% Comments '); ?></p> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php endif; ?>
Thanks for reading and for any help.
W
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Older entries link not working’ is closed to new replies.