Posted on 3 June, 2010 By 26 Comments

3 Ways to Exclude Pages from the WordPress Navigation Bar

 

Many navigation bars in WordPress are created dynamically with this piece of code
<?php wp_list_pages();?>

Since it is created dynamically, people often wonder how to exclude certain pages from the navigation. I have a lot more pages than I want listed there and I need a way to remove them.

Here I’m going to list three ways that you can do that. One is a code solution and the other two require the use of a plugin.

I have always attempted to use a code rather than a plugin solution but when there are a lot of pages to exclude or when the site is being created for a client, it may be best to use a plugin. Right now, I have so many pages excluded through the code that it may be easier for me to switch to a plugin in order to manage it. Especially since I have a navigation menu at the top and at the bottom of the page.

Code

Way back I wrote an article about how to exclude pages from the WordPress navigation bar manually. Instead of repeating that information, I have linked to the article. Nothing has changed and the exclude code still works perfectly.

Exclude Pages Plugin

The Exclude Pages Plugin adds a checkbox to the Edit page screen that says “include this page in menus”. When the plugin is installed the checkbox is checked by default. If you want to exclude the page, simply uncheck that checkbox.

pageMash Plugin

The pageMash plugin is the one that I prefer to install on client sites because it has additional functionality. In addition to hiding pages from the navigation bar, this plugin also provides a drag and drop interface that can be used to manage the order in which the pages appear on the navigation bar. It also provides a quick way to edit and rename the pages. Once installed, pageMash will be under the Pages menu.

Do you exclude pages from your navigation bar? Do you use any of these methods? Or do you use a different plugin that you like better?

photo credit: duncan (Wow! No tiaras with an apostrophe and an incorrect spelling of jewelry – gotta love it.)


StudioPress Premium WordPress Themes

Keep Reading:
Posted In : WordPress Plugins | WordPress Tips

Did you enjoy this article? I can assist you with your WordPress or Facebook project. Contact me and I will provide you with an estimate. You can also connect with me on Facebook or follow me on Twitter. If you are looking for Hosting, WordPress Theme, Newsletter or other recommendations, please view my detailed list

.


26 Responses to “3 Ways to Exclude Pages from the WordPress Navigation Bar”

Trackbacks/Pingbacks
  1. 14 Useful Articles for Bloggers, WordPress Users, and Social Media Users | Evolutionary Designs
  2. WordPress 3.0 Released 6/17/10 | WordPress and Facebook Consultant | (Anti) Social Development
  3. Managing the WordPress archives with the Smart Archives Reloaded plugin | WordPress and Facebook Consultant | (Anti) Social Development
Leave a Comment
You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

CommentLuv badge

About

Kim Woodbridge is an accomplished Information and Technical Consultant specializing in the entire implementation of a WordPress based website including installation, theme design, upgrades, unique customizations and ongoing site maintenance.

Recent Comments

    • Eric Chapman: You rock; thank you!...
    • Victoria12: Wow! This are so cute. It is so much special when our kids do it on their own and give it us as a surprise gift.. So tou...
    • Catherine: I hope that the page owners have a plan for the transition. One concern is that Facebook doesn’t have a great method of ...
    • harm: You no longer can "Add to My Page" This used to be simple, using the facebook UI. Unfortunately facebook removed thi...
    • Phil Derksen: I was referencing plugin #1 in the list btw. :)...

Wordpress Services

  • Installation, upgrades and maintenance
  • Conversion of existing html and css templates
  • Theme and plugin recommendations
  • CSS customizations
  • Troubleshooting and tweaks for unique situations
  • Customization for individual blogging goals and needs
  • Training and advice