How to Hide Password Protected WordPress Content

By default, the title of your password protected content will still show up on various pages such as home page or search result. In some cases, you even want to hide these titles. So no one is aware of their existence except the people who know the direct URLs.

Password Protect WordPress (PPWP) plugin gives you the ability to control your protected content’s visibility. You can not only password protect your private content but also hide its title and password form in the different views.

Requirement:

Once activation, go to PPWP settings page, you will see the “Protected Content Visibility” option under General tab.

This option is disabled by default. If you turn it on, you will be suggested to hide your password protected posts in the following places:

  • Home page or Front page
  • Search results
  • Category pages
  • Author pages
  • Archives
  • Recent posts widget
  • RSS Feeds
  • Next & Previous
  • Guttenberg widgets: Latest Posts, Recent Comments & Comments RSS (WIP)

When it comes to pages, our plugin allows you to hide them wherever they are listed via get_pages function, such as:

  • Front (home) page
  • Search results
  • Pages widget
  • Navigation menu

If you’re using the popular Yoast SEO plugin with the XML sitemaps enabled, we will provide an option to help you exclude your password protected pages and posts from the XML sitemaps too. As a result, they won’t be indexed by Google and other search engines anymore.

Please note that:

  • The title and password form will be hidden completely from the public, including both people who have entered the right passwords and whitelisted user roles.
  • If you stick a password protected post, it will still display on the home page.
Lasted updated on January 12, 2020