I'm using wordpress_list_pages to produce a submenu on the page and child page. All working fine

My menu appears like Parent, page title is Hello Child, Child, Child, etc

I'm looking for a method to dynamically alter the Page title on output. During my example above, I'd like my Parent page to show GoodBye rather than Hello.

You may wander why I do not just relabel my page to Goodbye. For the reason that the Page title , during my design, is displayed in 3 different format - menu Header Hello shows Welcome (can alter this via Wordpress menu - Page title display the right title, ie Hello

I want my left menu to show Goodbye....

hope this will make sense for an individual

thx

Make use of a custom area in your page...let us refer to it as sidebar_title.

Then, you will need to convert your wp_list_pages code right into a custom WordPress loop (there can be a method to use get_pages to complete exactly the same should you prefer that.

Here's some sidebar code to list out the present page and it is child pages, changing the_title(); together with your sidebar_title whether it is available. It's pretty ugly...the primary point is to inform you how you can access custom fields.

<?php
    //Get children of current page and display with custom fields. 
    //You will probably need to adjust this.
    $args=array(
      'post_parent' => $post->ID,
      'post_type' => 'page',
    );
    $my_query = null;
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
    ?>
    <ul>
    <?php 
        // Print parent with sidebar_title, if it exists
        $sidebar_title = get_post_meta($post->ID, 'sidebar_title', true); 
        if ($sidebar_title != ''){ ?>
            <li><a href="<?php the_permalink() ?>"><?php echo $sidebar_title;?></a></li>
        <?php } else { ?>
            <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
        <?php } ?>
    <?php
      // Print each child page with sidebar_title, if it exists
      while ($my_query->have_posts()) : $my_query->the_post(); ?>
        <?php 
            $sidebar_title = get_post_meta($post->ID, 'sidebar_title', true); 
            echo $sidebar_title;
            if ($sidebar_title != ''){ ?>
                <li><a href="<?php the_permalink() ?>"><?php echo $sidebar_title;?></a></li>
            <?php } else { ?>
            <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
            <?php } ?>
       <?php endwhile; } ?>
       </ul>
    <?php wp_reset_query();?>