ExpertsGrow logo Get a free quote ↗

How to Hide a Page in WordPress: 5 Methods Compared

November 19, 2026 · 12 min read
How to Hide a Page in WordPress: 5 Methods Compared

If you are working out how to hide a page in WordPress, start with one question: hide it from whom? Visitors, people browsing your menu, search engines, or everyone except you? Each goal needs a different method, and picking the wrong one leaves the page more exposed than you think. This guide covers five easy methods, what each really does, and the steps in WordPress and Rank Math.

How to hide a page in wordpress: Experts Grow guide cover

Quick answer: To hide a page in WordPress, set it to Draft or Private to hide it from the public, add a password to share it with a few people, remove it from menus to make it harder to find, or enable No Index in Rank Math to keep it out of Google. Menu removal and noindex alone do not stop someone who has the link.

Hiding vs blocking: the difference that matters

When people ask how to hide a page in WordPress, they usually mean one of three different things.

  • Hide from visitors. Nobody without permission can open the page. Draft, Private and password protection do this.
  • Hide from navigation. The page is live and anyone with the link can open it, but it is not in your menu. This is only a convenience.
  • Hide from search engines. Google and others are asked not to list it. People with the link can still open it.

The mistake is treating these as the same thing. A page removed from the menu is still public. A page with noindex is still public. Only access controls, such as Private or a password, actually stop people from reading the page.

Blocking is different again. Blocking usually means a robots.txt rule that tells crawlers not to fetch a URL. As Google’s documentation on blocking indexing explains, a page you want noindexed “must not be blocked by a robots.txt file,” because otherwise the crawler never sees the noindex rule, and the page can still show up in results if other pages link to it. So blocking is not the same as hiding. We cover this trap in detail below.

How to hide a page in WordPress: the 5 methods at a glance

MethodVisitor with the linkLogged-in Editor or AdminSearch enginesBest for
DraftCannot see itCan see it in adminNot published, so not listedUnfinished pages
PrivateCannot see itCan see itNot accessible to crawlersInternal pages only your team reads
Password protectedSees title and a password promptCan open without the passwordCannot read the contentSharing with specific clients or people
Remove from menuCan open it by URLCan open itCan still find it by links; may be in the sitemapPages you do not want in navigation
Noindex (Rank Math)Can open it by URLCan open itAsked not to list itThank-you pages, landing pages, thin pages

The visitor and admin columns for Private and Password protected come from WordPress’s content visibility documentation. Search engine behavior for noindex comes from Google’s documentation.

Method 1: Save the page as a draft

A draft is the simplest answer to how to hide a page in WordPress while you are still writing it. Drafts are not published, so the public cannot reach them.

  1. Open the page in the editor (Pages, then the page title).
  2. If it is published, open the Page tab in the settings sidebar (the gear icon, top right), find Status, and change it to Draft. Some WordPress versions also show a Switch to draft button. WordPress’s own sidebar documentation removed that button from its text in 2024, so its presence depends on your version. Use whichever you see.
  3. Save the draft.

Use drafts for pages that are not ready. Do not use a draft to hide a page that already has links pointing at it. Visitors following those links will hit a not-found page, and search engines may drop the page. If you want to remove an old page permanently, plan a redirect instead. Our WordPress website redesign guide explains how to handle old URLs during a rebuild.

Method 2: Make the page private

Private is the best answer to how to hide a page in WordPress from everyone except your team.

According to WordPress’s documentation, private content “will not appear in the article lists,” and if a visitor guesses the URL they still cannot see it. Only logged-in users with the right permission levels, Editors and Administrators, can view it.

Steps in the block editor:

  1. Open the page in the editor.
  2. Open the settings sidebar with the gear icon in the top right and select the Page tab.
  3. In the Summary section, find the Status and visibility settings. The WordPress sidebar documentation lists Private (“only visible to site admins and editors”) and Password protected there.
  4. Choose Private.
  5. Update or publish the page.

Label names and layout change between WordPress versions (the docs describe a Status & Visibility pop-over, newer versions may show a separate Visibility row with Public, Private and Password protected). If your screen differs, look for those words. We have not checked every version.

There is one warning worth repeating from the documentation. If your site has several Editors or Administrators, they can all see private and password-protected pages in the admin, and can edit them or make them public. So private is “hidden from the public,” not “secret from your team.”

Method 3: Password protect the page

Password protection is useful when you want to share a page with a client or a small group.

  1. Open the page in the editor.
  2. In the settings sidebar, open the Status and visibility settings (labels vary by WordPress version).
  3. Choose Password protected.
  4. Type a password and update the page.

Visitors who open the page see the title and a password box instead of the content. Per the WordPress documentation, anyone who enters the correct password can read the page. Editors and Administrators can see protected posts in the admin without the password.

Two practical notes:

  • The password is shared. Anyone who knows it can pass it on, and one password covers the whole page.
  • The page title is visible on the prompt screen, so do not put anything sensitive in the title.

For real privacy, such as customer data or invoices, a password on a page is not the right tool. Use a membership or access-control plugin, or keep the document off the website. WordPress core does not provide site-wide hiding or role-based restriction either. The documentation says that is left to plugins.

Method 4: Remove the page from your menu

This is the one many people mean when they ask how to hide a page in WordPress. The page stays live, but it no longer appears in your header or footer navigation. It is a good fit for pages like a thank-you page or a campaign landing page.

Classic themes (Appearance, then Menus):

  1. Go to Appearance, then Menus.
  2. Find the item and click the arrow to expand it.
  3. Click Remove.
  4. Click Save Menu.

Block themes: WordPress’s Menus screen documentation notes that from WordPress 6.0, when you use a block theme, navigation is managed with the Navigation block rather than the Menus screen. Open the Site Editor, select the Navigation block in the header, and delete the link to the page. Save.

Be clear about what this does. Removing the page from menus does not hide it. It stays at its URL. It can still appear in search results, in your XML sitemap (unless you also noindex it), in internal links, and in any link someone shares. If the goal is to keep the page out of search, use Method 5 as well.

Method 5: Use noindex in Rank Math

A noindex tag asks search engines not to include a page in their results. Google’s documentation describes it as a robots meta tag in the page’s <head>, or an X-Robots-Tag HTTP header. People can still open the page if they have the link.

Rank Math’s Advanced tab guide explains where to find the setting, on each post or page:

  1. Open the page in the editor.
  2. Open the Rank Math panel in the sidebar (or the Rank Math meta box below the content in the classic editor).
  3. Click the Advanced tab.
  4. Under Robots Meta, turn on No Index.
  5. Update the page.

Rank Math notes that once you enable Index or No Index, the other option is switched off automatically. Settings on a page override your global defaults from Rank Math’s Titles and Meta settings, so you can noindex one page without changing the others.

Rank Math also says Robots Meta is a suggestion to search engines, not a command. Major search engines follow it, but it is not security. Do not rely on noindex for anything private.

The robots.txt trap

Many guides suggest adding a Disallow: line in robots.txt to hide a page. That is a different tool, and it often backfires.

Google’s documentation says two things that matter here. First, if a page is blocked by robots.txt, the crawler never sees a noindex rule on it, and the page can still appear in results if other pages link to it. Second, noindex written inside robots.txt is not supported by Google.

So if you want a page kept out of search, leave it crawlable and put noindex on the page. Also remember that your robots.txt file is public. Listing a private URL in it tells anyone who looks exactly where to go. If a page must not be read at all, use Private or a real access control instead.

How to hide a page in WordPress: which method to use

Here is how to hide a page in WordPress for the most common goals.

Your goalUse this
The page is not finishedDraft
Only my team should read itPrivate
A client or small group needs accessPassword protected, or an access-control plugin for real privacy
Keep it live but out of navigationRemove from menu
Keep it live but out of GoogleNoindex in Rank Math
Out of navigation and out of GoogleRemove from menu and noindex
The page is gone for goodDelete it and redirect the URL if it had links or traffic

Common examples:

  • Thank-you and confirmation pages. Remove from menu and noindex. They should be reachable after a form or purchase, but they have no search value.
  • Client proofs. Password protected, with a title that reveals nothing.

How to check that the page is actually hidden

Whichever way you choose for how to hide a page in WordPress, do not assume it worked. Test each method.

  1. Private or draft: open the URL in a private browser window while logged out. You should see a not-found page, not the content.
  2. Password protected: open the URL logged out. You should see the password prompt only.
  3. Menu removal: check the header, footer and mobile menu on a live page. Also search your site for internal links that still point to it.
  4. Noindex: open the page, view the source, and search for noindex in the head. Rank Math adds it when you enable No Index.
  5. Sitemap and search: check your XML sitemap. Rank Math’s sitemap troubleshooting article says pages set to noindex in the robots meta tag are excluded from its sitemap. We did not test this on a live site, and a cached sitemap can still list the page for a while, so look for yourself. If the page is still listed, clear the sitemap cache. Then use Search Console’s URL Inspection to see whether Google reports the page as excluded by noindex.

If you use a caching plugin or CDN, clear the cache after changing visibility. A cached copy can keep serving the old public version for a while.

Hiding pages in builders and custom themes

The steps for how to hide a page in WordPress are the same whether you use Gutenberg, Elementor or another builder, because visibility, menus and noindex are controlled by WordPress and your SEO plugin, not by the layout.

Custom needs are different. If you want role-based rules, such as “logged-in customers see this page and nobody else”, or a custom template that behaves differently for members, that is development work. It is a common request in a WordPress theme customization service project, and our WordPress development services cover the plugin side. Always check access rules after theme or plugin updates, because they are easy to break.

Want us to check what is visible on your site?

If you are unsure how to hide a page in WordPress for your case, or which pages are public, indexed or hidden, we can take a look. We will tell you what is visible to visitors and search engines and how to fix anything you want hidden, even if you do it yourself afterward. If your site needs access rules or template changes, our custom WordPress theme developers can scope it with you. Send a short note through our contact page and ask for a free review.

FAQ

What is the difference between a private and a password protected page?

A private page can only be seen by logged-in users with permission, such as Editors and Administrators. A password-protected page is public at its URL, but visitors see only the title and a password prompt until they enter the password.

Does removing a page from the menu hide it from Google?

No. The page stays live at its URL and can still be found through links and your sitemap. To keep it out of search, add noindex as well.

How do I hide a page from search engines but keep it live?

Open the page, go to the Rank Math Advanced tab, and turn on No Index under Robots Meta. Leave the page crawlable, so search engines can read the tag. Do not block it in robots.txt.

Can I hide a page in WordPress without a plugin?

Yes, for most cases. Draft, Private, password protection and menu removal are built in. Noindex needs an SEO plugin like Rank Math, or custom code. Hiding a page by user role needs a plugin or custom development.

How long does it take for a hidden page to leave Google?

It depends on when Google next crawls the URL. It can take days or weeks. Check the URL Inspection tool in Search Console, and use the temporary removals tool if you need it gone sooner.

It depends on the method. Draft and Private block them. A password blocks them until they have the password. Menu removal and noindex do not block anyone who has the link.