Load parent pages when there are no child pages
possible code: <?php $children = wp_list_pages(‘title_li=&child_of=”.$post->ID.”&echo=0&depth=1’); if ($children) { ?> <ul id=”three-menu”> <?php echo $children; ?> </ul> <?php } //ends (if($children)// elseif($post->post_parent) { //if no children, try to get parent page and show siblings pages including the page itself $siblings = wp_list_pages(‘title_li=&child_of=”.$post->post_parent.”&echo=0&depth=1’); if ($siblings) { ?> <ul id=”three-menu”> <?php echo $siblings; ?> </ul> <?php } … Read more