How to hide Pages in WordPress
Wordpress by default displays all the pages and the sub-pages you create in the main menu or the navigational menu of your blog. However, there are situations where we don’t want certain pages from being displayed on the main menu but still retain their functionality. Sometimes when you have too many pages in your blog, your navigational menu starts overflowing from one horizontal line into two and more …
In the article, I will tell you how you can hide pages in WordPress and prevent them from showing up on the navigational menu of your blog.
Method 1 : Write and save a page as a Draft
Yes, this simple method lets you retain all the functionality of a page. You can still access this page by searching for it and this page will still be accessible if you type in the URL of that particular page.
So, create a page as usual and then under Page Status menu on the right hand side, choose Draft and hit save
Method 2: Edit your theme’s header.php
* From your Wordpress Dashboard, go to Presentation and Theme Editor and then select header.php from the options on the right hand side
* Look for wp_list_pages() tag. You will usually find this under a div id of top nav or something else that represents your blog’s navigational menu. This tag usually looks like this <?php wp_list_pages(’title_li=&depth=-1′); ?>
* Now go to Manage and then choose Pages from your WordPress dashboard. Back under the header.php
<?php wp_list_pages(’title_li=&depth=-1=&exclude= 32,56,199‘); ?>
In the above code, I added =&exclude=32,56,199. The 32,56,199 represent the page IDs I want to hide from my navigational menu
Method 3: WordPress plugin to Hide Pages in WordPress
You can use the Exclude Pages WordPress Plugin by Simon Wheatley to hide pages in a WordPress blog. This plugin adds a checkbox, “include this page in menus”, which is checked by default. If you uncheck it, the page will not appear in any listings of pages (which includes, and is usually limited to, your page navigation menus).
If you liked this article, click here to buy me a coffee!Popularity: 39% [?]


September 7th, 2008 at 11:05 pm
pa homeowners insurance…
exquisitely efforts:cupped hurling chartreuse …
September 10th, 2008 at 1:58 am
homeowners insurance customer reviews…
persuasions requester milk:theorizers …
September 22nd, 2008 at 4:11 am
Excelent blog and comments. Thanks and best regards from Germany Private Krankenversicherung
September 28th, 2008 at 9:29 pm
current va mortgage interest rates…
prophesies modicum?plunk ah importance speculating …
September 30th, 2008 at 7:51 am
Good info for the ones who are not paying attention..!!
October 1st, 2008 at 12:02 pm
debt consolidation loan for home owner…
robotics hardy combed opthalmic rhyme …
October 7th, 2008 at 5:46 pm
cheapest recreational vehicle insurance…
electrification:light.avoiding designators reunions currant!…
January 4th, 2009 at 5:55 am
happy new year to all.
January 22nd, 2009 at 10:31 am
www trio poker com…
meanings countywide supersets dangles Swedish outcry….
January 23rd, 2009 at 7:25 am
Great tips, I guess hiding some pages can improve the user’s experience. having important pages visible at all times.
February 19th, 2009 at 6:15 am
Thank you SO much for posting this.
I didn’t know there was an Exclude Pages plugin!
Other sites kept telling me that the fix is to make the page “Private”
but when I linked to it from outside I got “invalid link” error.
The plugin definitely did the trick
February 25th, 2009 at 12:23 pm
Thank you for the info. Do you know of a way to exclude pages from the top/main menu only, but still allow them to be shown in menu/page widgets in the sidebar?
March 5th, 2009 at 11:35 pm
Buy cheap no prescription vicodin….
Cheap vicodin cod. Buy cheap no prescription vicodin. Cheap vicodin….
April 23rd, 2009 at 4:41 am
Как можно связаться с автором блога для размещения постового у вас на сайте и сколько будет стоить?
June 11th, 2009 at 1:02 am
Thanks for this info. I had been looking for the last hour trying to hide one of the pages on my wordpress site and it was driving me crazy. So glad there is a plugin for this because I am horrible at code. Thanks again, and keep up the good work.
June 19th, 2009 at 10:53 am
I’m looking for a plugin that allows you to create multiple pages within a single post. Searching on WordPress’ site doesn’t work well because it keeps pulling up results for plugins related to actual WordPress pages.
June 19th, 2009 at 10:56 am
I want a Mootools-style accordion menu effect applied to the Pages menu in WordPress? Is there a plug-in or an easy solution to do this? I want to be able to use the parent pages as the menu, but hide the sub-pages of each parent in the accordion.
June 19th, 2009 at 10:57 am
You simply create the page via the Wordpress admin. Not posts. It will not appear on the front page, and will (or should appear) under a separate pages navigation.
June 19th, 2009 at 10:58 am
I have a wordpress blog. Its not used as a blog. I want to use it as the frontpage of my forum site. So, I want to place the blog posts in a page named “Blog”. The frontpage shud be dedicated to welcome message and important messages.
June 23rd, 2009 at 2:03 pm
Does this site work in IE 6? If it does, could you tell me how you got it to work? I have a similar template that just isn’t working right. Some margins are off.
June 23rd, 2009 at 8:48 pm
A debt consolidation loan has many advantages. It can reduce high interest rates and simplify monthly payments by reducing them to one. However, individuals must do their part by learning to spend wisely and responsibly. Debt consolidation loans have some drawbacks as well. They can be seen by some lenders as a warning sign that a prospective borrower is in trouble. Another drawback is that some debt consolidation lenders will ask that you put up collateral before they grant the loan.
July 4th, 2009 at 6:14 pm
I want a Mootools-style accordion menu effect applied to the Pages menu in WordPress? Is there a plug-in or an easy solution to do this? I want to be able to use the parent pages as the menu, but hide the sub-pages of each parent in the accordion.
anyone have a solution, suggestions or ideas?
September 1st, 2009 at 7:44 am
А почему у вас сайт в таких странных тонах? Содержание отличное, а дезайн можно поинтереснее сделать
September 7th, 2009 at 2:01 am
Oh wow! I’ve always had to manually hand code the sidebar and things to be able to hide pages, now this will save me some headaches =D
Till then,
Jean
October 6th, 2009 at 5:22 am
Quite clever tips here you given to hide pages in wordpress, Editing in theme header.php very new for me never tried to edit header.php.
October 6th, 2009 at 9:25 am
I’m looking for a plugin that allows you to create multiple pages within a single post. Searching on Word Press’ site doesn’t work well because it keeps pulling up results for plugins related to actual WordPress pages, instead of pages within a post.
November 16th, 2009 at 6:11 pm
There is obviously a lot to know about this. I think you made some good points about how to marketing works on the Internet.
November 28th, 2009 at 9:50 am
Hi, I just now come across this site whilst I’m browsing on online as I am researching some information on debt relief!. It’s an interesting blog so I have bookmarked you and I will return another day to allow more time for a more detailed browse when I’m more free.
December 24th, 2009 at 1:25 am
Im making a wordpress blog thats going to be more like a fan site than a blog and i was wondering if there was anyway to hide the thing that says like “Username’s Blog (ENTER) just another WordPress.com weblog” without paying the money to do a CSS code?
December 24th, 2009 at 2:47 pm
Great Stuff Ryan many thanks for this!
January 24th, 2010 at 10:44 am
Just found your site through yahoo. Glad I found it I’ve learned a lot.
January 27th, 2010 at 12:36 pm
Hey, I just wanted to say what a brilliant website. I really enjoyed it and found it interesting reading. Awaiting your next post!
January 28th, 2010 at 4:03 pm
If it does, could you tell me how you got it to work? I have a similar template that just isn’t working right. Some margins are off.
February 3rd, 2010 at 6:26 am
I think it is possible, but it would not be easy to do, never thought about installing wordpress on a flash drive, at a minimum you would need the right kind of environment on the drive.
February 17th, 2010 at 3:16 pm
I’ve always used the Exclude Pages plugin on my website which has worked particularly well for me. I didn’t realise that saving a page or post as a draft means that it’s still searchable though! I was trying to work out how to make a Featured Images plugin work to display images only from a category that I didn’t really want to link to anywhere so this could be a great way of doing that. I’ll give it a go!
February 19th, 2010 at 5:07 pm
Thanks for the info on how to hide a page in WP. Found it very helpful!
March 3rd, 2010 at 1:55 pm
I always wondered if a draft post/page was searchable. Guess I’d better check out the Excludes plugin.