• Hey guys, I am trying to figure out how I am able to list alphabetically, all of my children pages on to the parent page. The parent page is only there to list the children.. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    did you try this:

    <?php wp_list_pages('child_of='.$post->ID.'&sort_column=post_title'); ?>

    You can also use a custom query like that:

    <?php
    $childPages = new WP_Query('post_type=page&post_parent='.$post->ID.'&showposts=-1'};
    while ($childPages->have_posts()) : $childPages->the_post();
    ?>
    <?php php the_title(); ?> ... etc.
    
    <?php endwhile; ?>

    Obviously, you can play with all the available arguments.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Listing child page titles on parent page’ is closed to new replies.