6 Easy Ways to Hide Pages in WordPress

There are times when you create a page in WordPress that you don’t want everyone to see. It could be a page that says “thank you” after someone fills out a form. Perhaps it’s a page offering a unique discount. Maybe you’re still in the process of developing it. There’s no need to delete it; you can simply hide it.

WordPress is the most popular way to make websites, and it runs more than 43% of the internet. Many websites use WordPress, so it’s important to know how to control who can and can’t access them.

The good news? You can hide a page with WordPress. There is a way to hide a page from your navigation menu, search engines like Google, or even your visitors altogether. This guide covers the easiest and most effective ways to hide a page in WordPress. You don’t need to know how to code.

1. Hide a Page from Your WordPress Menu

One of the easiest ways to hide a page is to remove it from your navigation menu. This doesn’t make the page disappear; it only makes it harder to find unless someone has the direct link.

Here’s how to do it:

  1. Go to Menus in your WordPress dashboard.
  2. Pick the menu you want to change, like the main menu.
  3. Click the arrow next to the page you want to hide.
  4. Click Remove.
  5. Save your menu.

That’s all! The page is still live and working, but it no longer appears in your navigation.

When to use this method:

Use this configuration for pages that are still public but don’t need to be visible in the main navigation, like thank-you, confirmation, or campaign-specific landing pages.

2. Make a Page Private or Password-Protected

You can hide a page from the public with WordPress’s built-in visibility settings. Either make it completely private (only site admins and editors can see it) or protect it with a password.

Here’s how to do it:

  1. Make changes to the page you want to hide.
  2. Look for the Visibility option in the right-hand sidebar, under Status & Visibility.
  3. Click Public and pick one of the following:
    1. Private: Only admins and editors can see the page.
    2. Password Protected: Anyone with the password can view the page.
  4. To keep the changes, either update or publish the page.

When to use this method:

This works well for client previews, pages that are only for your team, or content that is behind a paywall. It’s fast, simple, and doesn’t require a plugin.

3. Use a ‘Noindex’ Tag to Hide from Search Engines

Do you want to prevent your page from appearing in Google search results without removing it? Adding a “noindex” tag tells search engines not to show the page in search results.

Using an SEO plugin is the easiest way to do this:

For example, with Yoast SEO: 

  1. Edit your page.
  2. Go to the Yoast SEO part by scrolling down.
  3. Click on the gear icon for the Advanced tab.
  4. Select “No” for the option labeled “Allow search engines to show this Page in search results?”
  5. Update the page.

Keep in mind that this doesn’t stop people from directly accessing the page. It simply prevents it from appearing in Google and other search engines.

When to use this method:

This method works well for preventing duplicate content, testing landing pages, or any other content that search engines should not see.

4. Restrict Access with a Membership or Plugin

A membership or access-control plugin is a good choice if you want more control over who can see a page. You can use these tools to hide pages from the public, logged-out users, or even certain user roles. Some well-known plugins are MemberPress, Restrict Content Pro, and Paid Memberships Pro.

Most plugins follow these steps:

  1. Set up and activate the plugin.
  2. Create a rule or restriction setting.
  3. Pick which pages you want to protect and who can see them.
  4. Save your settings.
  5. You can even make your own redirect messages, such as “Please log in to see this page.”

When to use this method:

This is ideal for online courses, premium content, or anything that costs money to see. This method is also ideal for a client portal or community site.

5. Redirect or Remove the Page URL

You might want to send visitors to a different page instead of just hiding the page. A redirect automatically takes anyone who goes to the old page to the new one.

Here’s how to set up a redirect easily:

  1. Use the Redirection plugin or SEO tools like Rank Math.
  2. Pick the source URL, which is the page you want to hide.
  3. Enter the URL where you want visitors to go instead.
  4. Save the redirect.
  5. You can also choose between making it temporary (302) or permanent (301).

When to use this method:

This feature is useful for managing outdated content, expired offers, or test pages that you no longer want to be visible.

6. Use Custom Code or functions.php (Advanced)

You can hide pages based on certain conditions using PHP snippets in your theme’s functions.php file. This method works if you’re comfortable with the code or have a developer to help you.

For example: hide a page from users who aren’t logged in.

add_action(‘template_redirect’, function() {

  if (is_page(‘your-page-slug’) && !is_user_logged_in()) {

    wp_redirect(home_url());

    exit;

  }

});

When to use this method:

This method works best for more customized configurations, such as concealing a page according to user roles, dates, or other variables.

Important: Always back up your site before changing theme files. If you use managed hosting by WPX, you can ask our support for safe help with this.

7. Bonus: Hide a Page from Site Search

A page may not show up in menus or search engines, but it may still show up in the internal search results of your WordPress site. You can prevent that too.

How to do it:

  1. Use a plugin like Search Exclude
  2. Install the plugin and turn it on.
  3. Edit the page you want to hide.
  4. Put a check in the box next to “Exclude from Search Results.”
  5. Save the page.

When to use this method:

This is useful if you’ve hidden thank-you pages or landing pages somewhere else but want to make sure they don’t appear in internal search results.

Common Mistakes to Avoid

  1. Don’t forget the mobile menu: You might remove a page from the main menu but overlook that it’s still in the mobile version.
  2. Not testing while logged out: If you’re logged in, you might see a page others can’t. Always check in a private window or while logged out.

Final Thoughts

Hiding a page in WordPress isn’t about being sneaky. It’s smart site management. Some pages just don’t belong at the top of your blog, business site, or store. 

You have many tools at your disposal, from simple fixes like removing menu links to more complex ones like member restrictions and noindex tags. Start with the easiest method, then build from there. You don’t need to delete pages to keep them hidden.

Frequently Asked Questions

How do I hide pages in the WordPress menu?

In your dashboard, go to Menus under Appearance. Click the dropdown next to the page, then click Remove. Save the menu. The page stays live but no longer shows in your site’s navigation.

Can you hide a page in WordPress without deleting it?

Yes. Make it private and password-protected, remove it from menus, add a noindex tag, or use a plugin to limit access. Just remember that if someone has the link, they can still view the page.

How do I hide a page in WordPress search?

Install a plugin like Search Exclude. Edit the page, check “Exclude from Search Results,” and save. This prevents the page from appearing in your site’s internal search.

Share Your Love
Daniel Petrov
Daniel Petrov

Yoana Genova is a Technical Support Lead at WPX, bringing over six years of experience in WordPress site creation, troubleshooting, and providing effective solutions. Her extensive knowledge has been further enriched by managing the Migration, Security & Optimization, and Support teams. Sharing her expertise is essential to maintaining the high standards of the WPX Technical Support Team.

Articles: 16