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% [?]

Share This | Trackback URL | Comments feed for this post


37 Responses to “How to hide Pages in WordPress”

  1. 1
    pa homeowners insurance Says:

    pa homeowners insurance…

    exquisitely efforts:cupped hurling chartreuse …

  2. 2
    homeowners insurance customer reviews Says:

    homeowners insurance customer reviews…

    persuasions requester milk:theorizers …

  3. 3
    Private Krankenversicherung Says:

    Excelent blog and comments. Thanks and best regards from Germany Private Krankenversicherung

  4. 4
    current va mortgage interest rates Says:

    current va mortgage interest rates…

    prophesies modicum?plunk ah importance speculating …

  5. 5
    Daniel Says:

    Good info for the ones who are not paying attention..!!

  6. 6
    debt consolidation loan for home owner Says:

    debt consolidation loan for home owner…

    robotics hardy combed opthalmic rhyme …

  7. 7
    cheapest recreational vehicle insurance Says:

    cheapest recreational vehicle insurance…

    electrification:light.avoiding designators reunions currant!…

  8. 8
    Tom Says:

    happy new year to all.

  9. 9
    www trio poker com Says:

    www trio poker com…

    meanings countywide supersets dangles Swedish outcry….

  10. 10
    Current account Says:

    Great tips, I guess hiding some pages can improve the user’s experience. having important pages visible at all times.

  11. 11
    Carlota | SqooshYourCritic.com Says:

    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 :D

  12. 12
    KJ Says:

    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?

  13. 13
    Cheap vicodin. Says:

    Buy cheap no prescription vicodin….

    Cheap vicodin cod. Buy cheap no prescription vicodin. Cheap vicodin….

  14. 14
    Serjio Says:

    Как можно связаться с автором блога для размещения постового у вас на сайте и сколько будет стоить?

  15. 15
    Cheap Gas Scooters Says:

    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.

  16. 16
    Hosting Says:

    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.

  17. 17
    Hosting Says:

    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.

  18. 18
    Hosting Says:

    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.

  19. 19
    Hosting Says:

    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.

  20. 20
    Kerry Carlwrinkle Says:

    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.

  21. 21
    Debt Consolidation Bad Says:

    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.

  22. 22
    Image hosting Says:

    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?

  23. 23
    Sam85 Says:

    А почему у вас сайт в таких странных тонах? Содержание отличное, а дезайн можно поинтереснее сделать ;)

  24. 24
    used tires Says:

    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

  25. 25
    Flooring Tampa Says:

    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.

  26. 26
    Current Health News Says:

    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.

  27. 27
    pre paid cash card Says:

    There is obviously a lot to know about this. I think you made some good points about how to marketing works on the Internet.

  28. 28
    Eve Barnhouse Says:

    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.

  29. 29
    web design help Says:

    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?

  30. 30
    Boxing Bags Says:

    Great Stuff Ryan many thanks for this!

  31. 31
    loan refinance Says:

    Just found your site through yahoo. Glad I found it I’ve learned a lot.

  32. 32
    refinace homes Says:

    Hey, I just wanted to say what a brilliant website. I really enjoyed it and found it interesting reading. Awaiting your next post!

  33. 33
    oyun Says:

    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.

  34. 34
    home renovation Says:

    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.

  35. 35
    LCD Wall Bracket Says:

    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!

  36. 36
    Orion CSI Says:

    Thanks for the info on how to hide a page in WP. Found it very helpful!

  37. 37
    Pen Voice Recorder Says:

    I always wondered if a draft post/page was searchable. Guess I’d better check out the Excludes plugin.

Leave a Reply