in a blow I'm working on there is a navigation menu made of pages and subpages. I didn't code it, so I'm not completely sure how it works, but after reading some code it seems that the menu is generated by this line in the navivation.php file.
<?php wp_list_pages('title_li=&depth='.$bpt_navigation_depth.'&sort_column=menu_order'); ?>
Now, I had to manually build another menu. I just created a list and inserted links to the pages I needed, without using any wordpress function. Some of these links are in the other menu too, so I want to remove them from there. I tried doing this:
<?php $args = array( 'depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'), 'child_of' => 0, 'exclude' => '17', 'include' => '', 'title_li' => __('Pages'), 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title', 'link_before' => '', 'link_after' => '', 'walker' => '', 'post_type' => 'page', 'post_status' => 'publish' ); ?> <?php wp_list_pages($args); ?>
But what happens is that it creates a menu with one single element named 'Pages', which contains a submenu with all the other pages and, anyway, it doesn't exclude the page 17.