post_type == ‚page‘){
$current=$post->ID;
}
if( empty($wp_query->post->post_parent) ) {
$parent = $wp_query->post->ID;
} else {
$parent = $wp_query->post->post_parent;
}
echo‘

    ‚;
    wp_list_pages(„exclude=$current&title_li=&child_of=$parent“);
    echo‘

‚;
?>