Can anyone provide any help on this? I have the same issue. My header has the main nav with just parents, then in the page template I include the sidebar which is just a simple submenu with children. It looks like this:
<?php
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=".$post->ID."&echo=0");
if ($children) { ?>
<ul id="submenu">
<?php echo $children; ?>
</ul>
<?php } ?>
I would like my output to be something like this:
<h2>NAME OF PARENT PAGE HERE</h2>
<ul id="submenu">
<li>Name of Child 1</li>
<li>Name of Child 2</li>
<li>...etc</li>
</ul>
So, I’m just missing the h2, which should be the NAME of the PARENT page. Any help would be MUCH appreciated.