WordPress.org

Support

Support » Themes and Templates » [Resolved] How to show previous/next links when listing post titles?

[Resolved] How to show previous/next links when listing post titles?

  • Hey,

    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>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to show previous/next links when listing post titles?’ is closed to new replies.