ID; while($current_page) { $page_query =& get_post($current_page); $current_page = $page_query->post_parent; } $parent_id = $page_query->ID; $parent_title = $page_query->post_title; $children = wp_list_pages('&child_of='.$parent_id.'&echo=0'); if ( $children ) { ?>