I’ve created a custom menu using pages. For a lot of the list items, I’ve specified a custom menu title for the page… So, the About Us page becomes About on the menu, for example. Then, when the page title is changed, it’s changing the title on the menu as well. So if I change About Us to About Our Company the menu is getting changed from About to About Our Company.
Is there a way to change the default in WordPress, so those custom menu titles are the default instead of the page name?
From header.php
:
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'sort_column' => 'menu_order',
'container_id' => 'nav',
'container' => 'div'
) );
?>
From functions.php
:
register_nav_menu( 'primary', 'Primary Menu' );