I have a parent page called "About". This page has three child pages "Members", "Information", "Contact".
I want to list all the child-pages on all four pages, also the parent-page. So right now I have this which lists all the child-pages only on the parent-page.
<?php
if ( !$post->post_parent ) {
echo '<ul id="subpages" class="wrapper">';
wp_list_pages("title_li=&child_of=".$post->ID."&link_before=— ");
echo '</ul>';
}
?>
But I want all the pages also listed on each individual child page.
How do I do that?