Inside the dashboard of wordpress, I'm within the menu section and also have transformed the navigation label of the page.

This prints out fine to screen. What I wish to do is print this because the title, not the initial page title.

e.g Transformed navigation label to around us. (original page title:Joe bloggs) Print to navigation around the front-end fine, However I have to print the label value elsewhere on the website.

The code presently using below:


  $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
  $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
  if ($children) {
  $parent_title = get_the_title($post->post_parent);?>

 <h2 class="lhp_title">**<?php echo $parent_title; ?>**</h2>
    <li><a href="<?php echo get_permalink($post->post_parent)?>"><?php echo $parent_title;?</a><?php echo $children; ?></li>

<?php } ?>

I wish to alter the code that is bold (echo $parent_title) within h2 tag.

We do hope you might help