How To Hide A Page In WordPress? [in 2023]

Written by: Mark Coleman
Published on:

Do you know how to hide a page in WordPress? It’s a common question that website owners often ask.

Whether you’re creating an under-construction page or want to keep certain pages private, hiding a page can be a useful tool.

But sometimes, you may face issues while trying to hide a page in WordPress.

In this blog post, we’ll discuss how to hide a page in WordPress using plugins and code snippets.

We’ll also cover why and when you should hide a page in WordPress.

If you prefer to watch a video tutorial on how to Hide A Page In WordPress, check out this video tutorial:

How To Hide A Page In WordPress?

Here is how to hide a page in WordPress:

  1. Open your WordPress dashboard and hover over “Plugins” and click on “Add New”.
  2. Search for “Unlist Page” plugin and click on “Install Now” and then “Activate” the plugin.
  3. Go to your “Pages” section and select the page you want to hide.
  4. To the right-hand side of the page editor, you will see a new option labeled “Unlist Post”.
  5. By default, this option is unchecked, which means that the page is visible to everyone. To hide the page, check the “Unlist Post” option.
  6. Click on “Update” to save the changes.

That’s it! Your page is now hidden from your website. With these simple steps, you can easily control the visibility of your pages in WordPress.

Can’t Hide A Page In WordPress – How to fix it?

WordPress is a popular content management system that allows users to create and manage their websites easily. However, sometimes users face issues while trying to hide a page in WordPress. The good news is that there are multiple solutions to this problem.

One solution is to use a plugin called “Unlist Post and Pages”. To use this plugin, you need to open your WordPress dashboard, hover over the “Plugins” option and click on “Add New”. Then, search for “Unlist Page” and install and activate the plugin. After that, go to the “Page” section and edit the page that you want to hide. On the right-hand side, you will see a new option called “Unlist Post”. Check this option and update the page to hide it.

Another solution is to use a code snippet to hide the page. To do this, you need to add the following code to your WordPress theme’s functions.php file:

“`
function hide_page(){
if (is_page(‘page-slug’)){
wp_redirect(home_url());
exit;
}
}
add_action(‘template_redirect’, ‘hide_page’);
“`

Replace “page-slug” with the slug of the page that you want to hide. This code will redirect users to the homepage if they try to access the hidden page.

You can also use a plugin called “Password Protected” to hide a page and make it accessible only to users who have the password. To use this plugin, install and activate it and then go to the page that you want to hide. Check the option “Password Protected” and enter a password. Update the page to hide it.

In conclusion, hiding a page in WordPress is not a difficult task. You can use plugins or code snippets to achieve this. Choose the solution that works best for you and your website.

Why and When Should You Hide A Page In WordPress?

Hiding a page in WordPress can be useful for a variety of reasons. Here are a few scenarios where hiding a page may be beneficial:

  1. Under Construction Pages: If you’re working on a new page or section of your website that isn’t quite ready for public consumption, you may want to hide it until it’s complete. This can prevent users from stumbling upon unfinished content and potentially damaging your website’s reputation.
  2. Private Pages: If you have content on your website that you only want certain users to see (such as members-only pages), hiding those pages can be a good way to keep them hidden from the general public.
  3. Seasonal Pages: If you have pages on your website that are only relevant during certain times of the year (such as holiday-themed pages), you may want to hide them during the off-season to avoid confusing or frustrating users.

To hide a page in WordPress, you can use a plugin like “Unlist Post and Pages.” Simply install and activate the plugin, then navigate to the page you want to hide in your WordPress dashboard. From there, you can check the “Unlist Post” option on the right-hand side of the page editor to hide the page from your website’s navigation and search results.

Overall, hiding a page in WordPress can be a useful tool for managing your website’s content and ensuring that users only see what you want them to see.

Conclusion – Hide A Page In WordPress

Hiding a page in WordPress is a common practice that website owners often use for various reasons.

Whether you’re creating an under-construction page or want to keep certain pages private, hiding a page can be a useful tool.

In this blog post, we discussed how to hide a page in WordPress using plugins and code snippets.

We also covered why and when you should hide a page in WordPress.

Mark Coleman - HowTOBuildWebsites
Written by Mark Coleman


Mark Coleman is the founder of HowToBuildWebsites.org, which provides comprehensive tutorials on website builders like WordPress, Wix, Squarespace, Webflow, and Shopify. He graduated from the University of North Texas with a business degree, developing an interest in web design's changing landscape and website builders' potential.

Mark enjoys experimenting with new web technologies, refining his web development skills, and actively participating in web design and development communities.

Learn more about him and read his articles here on HowToBuildWebsites.org.

Leave a Comment