How to hide WordPress pages

There are 3 ways to achieve this:

  1. DRAFT – Write the page and keep it in Draft status.
    • This will hide the page from the list of pages in the menu.
    • The page will be still accessible using search.
    • The page will be still accessible if you type the page’s URL into the address bar.

    I use this method to provide pages (such as this one) when I am hanging them off one of my publically available pages, but I don’t want to clutter my main menues.

  2. PRIVATE – Publish the page, but set it’s Visibility state to Private.
    • This will remove the page from the list of pages in the menu.
    • You cannot access the page using search.
    • You cannot access the page by typing the page’s URL into the address bar.
    • The page will only be accessible if you are logged in as Admin and type the page’s URL into the address bar.

    This is the best way to hide a page

  3. PASSWORD – Publish the page, but set it’s Visibility state to Password Protected
    • This will remove the page from the list of pages in the menu.
    • You cannot access the page using search.
    • You cannot access the page by typing the page’s URL into the address bar.
    • The page will only be accessible if you know the password and type the page’s URL into the address bar.
    • Password are case sensitive

    This is the best way to control access to pages. For example try to access the example page here using password: aSecretWord

{ 1 comment… read it below or add one }

katrina May 9, 2011 at 7:17 pm

AWESOME – just what I was looking for, thank you! Everyone else had me changing the code and all sorts of other “tricks”. All I needed was your #1 and it works perfectly, thanks again!

Leave a Comment