post_parent)){
$get_pageid=$post->ID;
}else{
$get_pageid=$post->post_parent;
}
if($post->post_parent)
$children = wp_list_pages(‘title_li=&child_of=’.$post->post_parent.’&echo=0′);
else
$children = wp_list_pages(‘title_li=&child_of=’.get_the_ID().’&echo=0′);
if ($children) { ?>