This is an old version of this answer!
Return to the current answerI think this should do the trick.
<?php
global $post;
echo $post->ID;
$page_children = get_pages("child_of=".$post->ID."&sort_column=menu_order&depth=1");
if ($page_children) {
wp_list_pages('title_li=&child_of='.$post->ID.'&depth=1' );
}
else{
wp_list_pages('title_li=&child_of='.$post->post_parent.'&depth=1' );
}
?>
Dan Fraticiu | 01/30/10 at 4:48am





