esmi, that was timely and perfect. thx.
Note the addition of “depth=1” on line 5 to hide the grandchildren.
<?php
if($post->post_parent)
$children = wp_list_pages(“title_li=&sort_column=menu_order&child_of=”.$post->post_parent.”&echo=0&depth=1″);
else
$children = wp_list_pages(“title_li=&sort_column=menu_order&child_of=”.$post->ID.”&echo=0&depth=1“);
if ($children) { ?>
<div class=”widget widget_pages”>
</div>
<?php }