I need to create a page with limited navigation items for a friend's website. I'm thinking what I need to do is use if is_page to create additional exclusions on the pages in question. The problem is, I have very little PHP knowledge. I was wondering if anyone could help me out with how to write the code for this?
Here's the sandbox_glovalnav section from the site as it is now:
function sandbox_globalnav() {
if ( $menu = str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages('title_li=&sort_column=menu_order&echo=0&exclude=254,271,274,277,279,465,454,486,545,650,816,831,904,910,946') ) )
$menu = '
- ' . $menu . '
$menu = '<div class="menu">' . $menu . "</div>\n";
echo apply_filters( 'globalnav_menu', $menu ); // Filter to override default globalnav: globalnav_menu
}