Hiding Pages in menu?


Author Message
Melissa

Posted: 7/13/2009
Quote message 

How would hide the pages I don't want to show up in the menu? I've tried the

wp_list_pages('exclude=17,38' )......

but it doesn't work.
 
Garry

Posted: 7/13/2009
Quote message 

Following plugin will be helpful to you:

http://wordpress.org/extend/plugins/exclude-pages/
 
Melissa

Posted: 7/13/2009
Quote message 

Thanks, but I don't want a plug-in. Is there any other option?
 
Adam

Posted: 7/13/2009
Quote message 

<?php wp_list_pages('exclude=1,2&title_li='); ?>

However, it won't immediately format correctly with an Artisteer-generated theme.

When it comes to plugins, the pagemash plugin works nicely not only for excluding pages but for reordering them.
 
Melissa

Posted: 7/14/2009
Quote message 

Thanks. I guess I'll have to use a plug-in after all.
 
Garry

Posted: 7/14/2009
Quote message 

You can do it adding exclude parameter to your wp_list_pages( ) template tag but plugin is much user friendly way
 
Melissa

Posted: 7/14/2009
Quote message 

Hi, Garry, can you explain that again? I'm not sure if I understand. Thanks.
 
Garry

Posted: 7/15/2009
Quote message 

You may like to visit:

http://codex.wordpress.org/Template_Tags/wp_list_pages
 
Chris

Posted: 9/26/2009
Quote message 

The "Exclude Pages" plugin mentioned above works very well.
(It's just a small plugin anyway).

The main advantage of using the plugin is that if you ever updated your theme in Artisteer, you don't really want to have to manually modify the template code each time.
Using this method means it will work no matter which template (or template generator) you are using.