Forums
Home / Themes and Templates / All Pages & Subpages being added to main menu bar
(@mdbmarketing)
16 years, 2 months ago
I purchased a theme and installed it on my wordpress site. For some reason, it is adding all pages and subpages to my main menu. It looks ridiculous.
How do I change this setting and add only the pages I choose to the main menu bar?
I have no clue.
Thanks!
Mindy
PS. the site is http://www.directsalespages.com
(@kafkaesqui)
Look at the ‘exclude’ parameter for wp_list_pages(), which lets you provide Pages (that is, their numeric IDs) to ignore:
http://codex.wordpress.org/Template_Tags/wp_list_pages
If your theme sports a Header index (header.php), this is likely where wp_list_pages() is being called in the theme.
thanks!