apamphilon

Show all children in a loop

<ul>
    <?php $this_page_id=$wp_query->post->ID; ?>
    <?php query_posts(array('showposts' => -1, 'post_parent' => $this_page_id, 'post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC')); while (have_posts()) { the_post(); ?>
        <li>
            <p>Content here...</p>
        </li>
    <?php } wp_reset_query(); ?>
</ul>

Comments: