Sometimes you just need the direct children of a page and not all the children. This should help you out!


wp_reset_query(); 
$args = array( 
'child_of' => $post->ID, 
'parent' => $post->ID,
'hierarchical' => 0,
'sort_column' => 'menu_order', 
'sort_order' => 'asc'
	);
	$mypages = get_pages( $args );

	foreach( $mypages as $post )
	{ ?>
	//the Loop
	the_title();	
<?php }

Leave a Reply