Excluding pages from the access menu in Twenty Ten
-
I’ve built a theme with the stripped-down bones of Twenty Ten.
The access menu at the top of the page – the main navigational structure – lists all the pages automatically. I need to exclude a few, and include them elsewhere on the site.
I know that the usual way to do this is via <?php wp_list_pages(exclude=’x’) ?php>. However, in Twenty Ten the access menu doesn’t use wp_list_pages. It looks like this:
<?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); ?>
I have no idea how to put an exclude command in there. Has anyone done this before?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Excluding pages from the access menu in Twenty Ten’ is closed to new replies.