[Resolved] How to show previous/next links when listing post titles?
I am showing 15 post titles in a list, but I do have more post titles. I want to use previous and next links to show the next list of post titles. How to do this?
Script below is for listing post titles without the previous and next links:
<?php query_posts('category_name=film&showposts=15'); ?> <ul style="list-style:none;"> <?php while(have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </li> <?php endwhile; ?> <p><?php posts_nav_link(); ?></p> </ul>
- The topic ‘[Resolved] How to show previous/next links when listing post titles?’ is closed to new replies.