Paging Problem
-
Hi guys, one more thing — I have a self-hosted WordPress blog, and I’m having a problem with the paging. Specifically, no matter how many posts I have, the “Older Entries” pages show the same 5 posts.
Here is the code I’m using to display the blog posts —
[please use backticks or the ‘code’ button to mark the code.
otherwise the code might get corrupted and become unreadable.]<?php query_posts("posts_per_page=5"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h4><a>"><?php the_title(); ?></a></h4> <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?> <div class="entry"> <?php the_excerpt(); ?> </div> </div> <?php endwhile; ?> <?php include (TEMPLATEPATH . '/inc/nav.php' ); ?> <?php else : ?> <h2>Not Found</h2> <?php endif; ?> </div>
Can anyone help?
Thanks a lot!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Paging Problem’ is closed to new replies.