I think you just need a function to do this? a function at functions.php file
and call it whereever you need .
<?php check_if_child(32,’Education Subnav’); ?>
<?php
function check_if_child($pageid,$thesubnav){
global $post;
if(is_child($pageid)) {
$parent_title = get_the_title($post->post_parent);
echo “<h6>$parent_title</h6>”;
}
echo “<div id=’sub-navigation’>”;
if (is_child($pageid)){
wp_nav_menu( array(‘menu’ => $thesubnav ));
}
echo “</div>”;
} ?>
hello
we are working on a similar website with same functionality needed.
we will develop a plugin and it will be out before this weekends.
cheers