Create A Hidden Page Wordpress
From moving my site from cmsmadesimple to Wordpress I’ve come across a few little problems. When using cmsmadesimple I’ve always used the “show in menu” check-box to select if i wanted the page showing in the menu or not. I was getting a little fustrated when i wanted to create a hidden page basically one that doesn’t show up in the menu but i can hyperlink to, sending the reader to a dedicated page explaining in depth. I do it this way because it creates extra pages and often the bullet points are the keywords which then help with search engine optimization.
But as you probably know creating a new page in Wordpress it automatically shows up in the menu system this is what i mean by a hidden page in wordpress this is also known as a static page.
To get around this I’ve used the exclude parameter hightlighted below to hide the following pages generated by the wp_list_pages
<?php wp_list_pages(’sort_column=menu_order&depth=1&title_li
=&exclude=14‘); ?>
Because my menu is situated in the header the wp_list_pages it can be found in this file header.php, often you will either find it in the header.php or sidebar.php depending where your menu is located.








Magnus said:
Hi, thanks for the pointer. After fooling around with this I decided on an alternative solution, that does not require fooling around with the template to achieve this:
First, create a page (I call it “The Attic”), which is private.
Then, create the page you do not want included in the menu system, keep it public but assign the attic as page parent.
Now, neither page will show up in the menu system, but the public sub-page within the Attic will still be searchable. In addition to presenting a lower hurdle initially, it makes it a faster maneuver for adding new pages.
John said:
I created a page called Hidden (as a parent) and guess what? It doesn’t show up and I didn’t change any code. Easter Egg perhaps?
http://www.mortgageaid.org/ is the example. Check out Foreclosure Information. Maybe the menu system doesn’t accept another page heading after you have 4.
Martyn said:
Looks like its showing up here!
John said:
Oops. I was wrong. It does show up, my CSS was just messed up. I found a plugin to hide wordpress pages.
Oliver said:
Hey, thanks for the tip. Tried it out today and works perfectly
Good job!