Make subpage list behave like category archive page (w/ prev/next links) (1 post)

  1. PaulWarren
    Posted 5 years ago #

    I am looking for a way to navigate a long list of subpages.

    Currently I am using:

    <?php the_ID(); ?>
                   <?php $parent = $post->ID; ?>
    <?php query_posts('post_type=page&posts_per_page=5&post_parent='.$parent);
     while (have_posts()) : the_post();
        <a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a><br>
    <?php endwhile; ?>

    Gets me most of what I am looking for, but I'd like to have buttons to display the next/prev 5 posts in the list of subpages. I know this is simple with posts, is there any way with pages?

Topic Closed

This topic has been closed to new replies.

About this Topic