Yes. I created a simple WordPress plugin for you.
Download the WordPress Plugin ZIP
What this plugin does
It allows you to restrict individual blog posts and pages based on WordPress user roles.
For every Post and Page, you will get a new box called:
Content Restriction
Inside that, you can:
- Tick Restrict this content
- Select which roles can view it, such as:
- Subscriber
- Author
- Editor
- Customer, if WooCommerce is installed
- Any other custom role
Administrators can always view restricted content.
How to install
- Go to WordPress Admin
- Go to Plugins → Add New
- Click Upload Plugin
- Upload this ZIP file
- Click Install Now
- Click Activate
How to use
Open any blog post or page.
On the right side, you will see Content Restriction.
Select the roles who can view that page/post.
If a visitor is not logged in, they will be redirected to the login page.
If a logged-in user does not have permission, they will see a restricted content message.
Extra shortcode also included
This content is visible only to subscribers and customers.