Posted on 11 September, 2008 By 114 Comments

How to Exclude Pages from the WordPress Navigation Bar


Excluded (by malias)

Have you ever wanted to create pages in WordPress but don’t want them listed in the header or footer navigation areas? You still want the pages to be accessible, perhaps listed in the sidebar, so you don’t want to make them private. You can do this by excluding pages and I’ll show you how to do it.

I have seven pages on this site but only 4, plus the home page, are listed in the header and footer. None of these pages have privacy settings. The remaining three are listed in my sidebar as links rather than in a list of pages. Do you know which ones they are? They are Bookmarks, Friendfeed Lifestream, and RSS Stream.

Pages are displayed with the following code, which is generally used in the header, footer, or sidebar.

This will list all of your pages until you add conditions in between ‘()’. You need to use the exclude condition and find out what number ID each page has. The exclude code looks like

You can see that you have added 'exclude=17,38' to the original 
list pages code.

Of course, we need to locate the correct ID numbers for your pages.

Go to Manage > Pages and select the name of the page in which you would like to exclude. In the address bar of your web browser will be a URL that looks like the following.

The number at the end, 96, is the ID number for the page and is the number you will use in the exclude code. You can do this for each page that you want to exclude as long as you put a comma between the page numbers in the code.

Are there other tweaks that you would like to add to your list of pages? Ask me about them in the comments and I will answer your questions. Or if your comment really inspires me I will write an entire article about it :-)

photo credit: malias

Digging Into WordPress

Keep Reading:
Posted In : 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.

114 Responses to “How to Exclude Pages from the WordPress Navigation Bar”

  1. Question for My Readers - What Wordpress Tips Would You Like Me to Write About? | (Anti) Social Development
  2. WordPress - How To Create a Delicious Bookmarks Page | (Anti) Social Development
  3. How to Exclude a Category From the Sidebar List in WordPress | (Anti) Social Development
  4. A Privacy Page! : Web Career Girl
  5. 5 Most Popular (Anti) Social Posts of All Time | (Anti) Social Development
  6. Wordpress - Pages vs Posts ?
  7. Removing Pages From Navigation in WordPress | Es Developed - Fresh Website and Graphic Design
  8. how to add a hidden page in wordpress? - Blogging & Business Forums
  9. PHP Referrer: Displaying The Referring Page
Leave a Comment
You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> .


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

    • Property Marbella: Hi Kim, Declaring is not fun, I do a draft and my accountant will take care of the rest, the only thing I hope for is t...
    • Tanya: How could that video not put a smile on your face. Thanks!...
    • Dada Mirada: I also user Worpress , i have a using wordpress a over two years, but my site often maintenance...
    • silicon28: I just read this post (some years after the initial comments) and could not agree more! I also try to help folks on the...
    • Dada Mirada: Beautiful Art a your sharing...

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