Support » Fixing WordPress » Make subpage list behave like category archive page (w/ prev/next links)

  • PaulWarren

    (@paulwarren)


    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?

  • The topic ‘Make subpage list behave like category archive page (w/ prev/next links)’ is closed to new replies.