Wordpress Revolution Theme – How do I create a page that doesn’t appear in the navigation
September 18, 2008 by tibor
http://www.revolutiontheme.com/support/viewtopic.php?f=3&t=5847&p=31221&hilit=+menu+link#p31221
Re: How do I create a page that doesn’t appear in the navigation
You can create a page in the normal way then exclude it from the navbar. Find this in header.php:
Code:
<div id="navbarleft">
<ul id="nav">
<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order'); ?>
</ul>
</div>
and change it to:
Code:
<div id="navbarleft">
<ul id="nav">
<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
<?php wp_list_pages('exclude=XX&title_li=&depth=2&sort_column=menu_order'); ?>
</ul>
</div>
Replace XX with the ID number of the page to be excluded.
To exclude more than one page, the code looks like this:
Code:
<?php wp_list_pages(‘exclude=1,4&title_li=&depth=2&sort_column=menu_order’); ?>
Ade


