How to Hide WordPress Protected Content

Once your private content is protected by our Protect Pages & Posts (PPP) plugin, those without permission won’t be able to access them directly through their URLs. They will be redirected to your “No Access” page instead. 

However, their page and/or post title will still display somewhere on your website such as your home page latest posts, Archives and Search results. This accidentally reveals your private content to unwanted users. That’s why we’ve developed a new feature which allows you to control the visibility of your protected pages and posts. In other words, you’ll be able to hide or choose where to display this protected content.

When a post is protected, they will no longer show up on these places by default:

  • Front page latest posts
  • Category pages
  • Author pages
  • Archives
  • Recent posts
  • Search results
  • RSS Feeds
  • Next & Previous on a single page or post
  • Latest Posts, Recent Comments & Comments RSS Guttenberg widgets (WIP)

When it comes to WordPress protected pages, they will be excluded from:

  • Front (home) page
  • Search results
  • Anywhere else it is listed via get_pages function

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

Lasted updated on June 6, 2019