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

Share This | Trackback URL | Comments feed for this post


137 Responses to “How to hide Pages in WordPress”

Pages: « 1 2 [3] Show All

  1. 101
    Riga Stags Says:

    It is a good blogs for the internet user pls describe the work of word press?

  2. 102
    Optimise Web Says:

    This solution is now obsolete since Wordpress 3 was released.

    has now been replaced with…
    ‘menu-header’, ‘menu_class’ => ‘main-menu’, ‘theme_location’ => ‘primary’ ) ); ?>

    So now if you add your exclude, the code looks like this…
    ‘menu-header’, ‘menu_class’ => ‘main-menu’, ‘theme_location’ => ‘primary’, ‘exclude’ => ‘YOUR_HIDDEN_PAGE_IDs_HERE’ ) ); ?>

  3. 103
    锐思特汽车连锁旅店 Says:

    One other important part is that if you are a mature person, travel insurance for pensioners is something you need to really look at. The elderly you are, a lot more at risk you happen to be for allowing something terrible happen to you while in foreign countries. If you are not really covered by quite a few comprehensive insurance, you could have a few serious complications. Thanks for discussing your hints on this website.

  4. 104
    cheap ski wear Says:

    I am trying to create a ‘child’ page for one of my ‘parent’ pages but it just doesn’t seem to work. On my blog admin panel on wordpress, I have a page called ‘kindergarten’ and when they click it, it will have 4 links: Language Arts, Math, Social Studies, & Science. I am working on Math right now. So, what I want to happen is that when people click on ‘Math’ it would lead them to another hidden page that’s not on the header that says ‘Addition’ and ‘Subtraction’. I heard that this is called adding Subpages. I’ve checked a TON of wordpress questions in the Q/A, but none seem to work. Please help!

  5. 105
    cheap ski wear Says:

    I need a Wordpress plug in that will allow me to use the first few lines of a post on a page and “hide” the rest under a link that will expand when I click it and show the rest of the post. Can anyone point me in the right direction? What I ma doing is creating my own shopping cart where I will list the product and its description and use a PayPal button for processing. The problem is that some of the products have very long descriptions, and I want to only show the first few sentences. I do not want each products to have its own page however. I just want the hidden text to expand downwards when the link is clicked. Thanks

  6. 106
    fastharryDOTcom Says:

    @cheapskiwear….Are you talking about using the page divider in the WP menu?..take a look at my site and see if that is what you need…all my front page posts are like that…(http://fastharry.com)…

    if that is what you need, when you post there is a box in the kitchen sink (the tools above the post) that looks like a piece of paper cut off…that is the “insert more” tag….if you like my posts using that tool, let me know…I will give you the tricks you need to make it work properly…You can email me also if you need help, support@fastharry.com

    Harry

  7. 107
    rejoy Says:

    Thanks for this post. This plug in was helpful to me..

  8. 108
    weekends in marbella Says:

    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 blo

  9. 109
    programy download Says:

    WordPress is very good tool for SEO but pages like categories aren’t useful for SEO because Google can find duplicate content.

  10. 110
    college loans online Says:

    thanks for the tip I was trying to figure this out the other day. Who knew it would be so easy.

  11. 111
    Amanda Gates Says:

    I use Exclude Page Plugin for hiding pages. Very simple & the most convenient method.

  12. 112
    Decorative Bird Cages Says:

    thanks for this important information.your blog is amazing.

  13. 113
    programy download Says:

    This isn’t good idea. WordPress is very good for SEO so we should public all pages.

  14. 114
    Recipes with Twist Says:

    These steps will help me to get my work done in wordpress.

  15. 115
    ABEGAIL Says:

    thanks for the information.. just what i exactly need. :)

  16. 116
    promotional products Says:

    I want to make a website which can be easily updated. with the help of Wordpress.

  17. 117
    college loans online Says:

    Great tip. I never thought I would need to hide a wordpress page.

  18. 118
    Tim Jefferson Says:

    Outstandingly entertaining bless you, I reckon your trusty audience would possibly want more writing like this keep up the good work.

  19. 119
    Tablet Comparison Says:

    great info for the uninformed user, good work

  20. 120
    photo frame Says:

    Login to your Wordpress admin page. Select Pages from the left hand column. The pages will be listed. Move the mouse over the Shop page and it should show options to Trash or Edit. You can either Trash it or choose Edit and then Save Draft. If it is a draft page it will not appear on the blog.

  21. 121
    photo frame Says:

    I’m trying to make a sales page in wordpress, but I don’t want my 2 sidebars/widgets to show on the sales page to optimize my sales page. How can I do this? I have 2 sidebars/widgets that I don’t want them to show on my sales page.

  22. 122
    photo frame Says:

    Hi, guys, is the way how can i make my video dont showing in wodpress index page, but when user pushe to to that article link hi could see that video

  23. 123
    photo frame 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.

  24. 124
    Recipes with Twist Says:

    I am really lucky that i got great information from this blog.

  25. 125
    Play School in Gurgaon Says:

    Hi nice title according post…How to hide Pages in WordPress…@@@

  26. 126
    Play School in Gurgaon Says:

    I hide a number of pages on my Nav bar to keep my sites look and feel clean. I do this because when people are visiting your site for the first time I think it can be overwhelming if there is too much information.

  27. 127
    http://www.birdcagedesign.com/ Says:

    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 blo

  28. 128
    Decorative Bird Cages Says:

    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 blo. Thanks for this blog.

  29. 129
    Food Processing Machine Says:

    Thank you, just what I was looking for. Very helpful information and easy to follow.

  30. 130
    Ronny Shneidler Says:

    Thanks for very good article. I was looking for the solution to hide a specific page on one of my blogs and I finally made it. Thanks so much.

    Ronny @ billig seo

  31. 131
    Marth Jellerson Says:

    Is there any such propositio-n, that is, who should have done what and when should he or she have done it, currently being expressed about the Economic Crisis? Can anyone state such a propositio-n?cheap guild wars 2 gold

  32. 132
    Billig Preis Says:

    Vielen Dank für Ihre Artikel, werde ich Ihren Link in meinem facebook teilen.

  33. 133
    BuildABedDOTnet Says:

    The following may be useful.
    I read in the wordpress codex that the draft pages are still indexed so even though they are hidden from the visitor you you may want to ensure that any draft pages are still on topic and high quility to help SEO.
    Just my $.02
    David

  34. 134
    Shirlee Cheesman Says:

    I’ve learned some new things through your site. One other thing I’d prefer to say is the fact newer computer system os’s tend to allow much more memory to be utilized, but they also demand more ram simply to function. If a person’s computer cannot handle extra memory as well as the newest software program requires that memory increase, it could be the time to buy a new Computer. Thanks billig seo

  35. 135
    Decorative Bird Cages Says:

    This is a very important information about the hide page in wordpress. Many of the people like to hide their information from the spammer or other people .Then they follow the step of given in this article.

  36. 136
    Bone Plates Says:

    Thank you so much for this! I didn’t know how to do this and was holding off on setting up an email list and free report until I figured it out. Just didn’t have to time to go searching for info and then came across this post. So simple and easy to understand. You’re the greatest!!!

  37. 137
    Packers Movers in Delhi Says:

    Really useful content, have always had issues with squeeze pages and thank you pages getting indexed so I found this helpful.

Pages: « 1 2 [3] Show All

Leave a Reply