Protect pages and categories with login using a shortcode.
As of April 2026, Protect pages and categories with login is a WordPress login plugin with 100 active installations and a 5/5 rating from 3 reviews. It has been downloaded 3.4K+ times in total. Requires WordPress 3.5.1+ and PHP false+. Available on WordPress.org since 2017. Last updated 6 years ago — may have compatibility concerns. Top alternative: WPS Hide Login.
This plugin protects pages and categories with login using a shortcode.
For page protection add a shortcode on the content and it will be prompted to login in order to view the content. After login user will be redirected to the requested page.
For category protection add a shortcode on the cetgory description and it will be prompted to login in order to view the category contents. After login user will be redirected to the requested category page.
You may also want to display a certain category or page depending on the user’s roles. In the case of pages the content displayed will be replaced with the text “NOT ALLOWED”, while in the case of categories the user who does not have the indicated role will be redirected to the homepage.
| WordPress | 3.5.1+ requiredTested up to 5.1.22 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.