as in the example from the default theme:
<?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 else : ?>
(put in between ‘endwhile’ and ‘else’)
Michael, I did not know that, thank you. I’m modifying the index page now and it’s working
Alchymyth, that’s exactly what I needed. I can see that next_post_link is for single-view post pages while next_posts_link (with the s) is for navigation of blog results. That’s what I was missing!
- The topic ‘No links to next and previous?’ is closed to new replies.