next_posts_link and previous_posts_link malfunction
-
Hi all,
My issue is that next_posts_link and previous_posts_link works on the category page but not on the customized recent blogs page. It shows only the recent 5 posts and displays the same even if I click on older or newer entries link. Plz help. Here is the code for recent blogs custom page
<?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 href="<?php the_permalink() ?>"><?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; ?>
And nav.php code is
<div class="navigation"> <div class="next-posts"><?php next_posts_link('? Older Entries') ?></div> <div class="prev-posts"><?php previous_posts_link('Newer Entries ?') ?></div> </div>
I ‘d appreciate any help.
Thanks and have a nice day>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘next_posts_link and previous_posts_link malfunction’ is closed to new replies.