I'm working on a wordpress site that was set up by others. They customized the TwentyTen template to make this site.
They used a function to automatically create a sidebar navigation menu that includes all pages, in order in the page.php template file:
<ul class="left-hand-menu left"> <?php wp_list_pages('title_li=&exclude=29,111,115,771,915,917,919'); ?> </ul>
I'm now creating landing pages and optimizer test pages that I do not want to appear in the navigation. In order to do so I have to find the id number of each new page and add it to the exclusion list in each template file (there's one for the blog as well), which is a pain in the butt. Ideally the site would use the wysiwyg menu editor feature to allow the user to set menus intuitively as needed.
I have created a new menu in the menu editor and added code to the functions.php file (as per http://www.wpbeginner.com/wp-tutorials/adding-a-second-menu-to-the-twenty-ten-theme/) to make the menu selectable in the menu editor.
I have added code to page.php to call my secondary menu (as per http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/)
--but only the parent menu items appear. I have several levels of child sub-menu items made in the menu editor, but they just don't show up in the site's front-end, not even in the source (they are not just being hidden by CSS).
How can I make this menu work? Why are the child items not showing up?