You search certainly something like Members plugin.
It allow you create a custom Role and You can make your site and its feed completely private if you want or just one or 2 posts. Its like you want.
Or Manually, you can add new roles:
function add_role() {
add_role( 'private_user', "private user",array(
'is_able_to_read_private_page'=> true,
'read'=> true
) );
}
add_action('init','add_role');
And Create a custom page and using something like: (ITS AN EXAMPLE)
<?php /*Template Name: Private page Template*/
get_header();
if(current_user_can( "is_able_to_read_private_page")):
if( have_posts() ):
while( have_posts() ):
the_post();
endwhile;
endif;
else:
echo "Access Denied";
endif;
get_footer();?>
Related Posts:
- Hide front-end from every logged out user and redirect them to the default login page
- How to restrict an admin page, if the user is not superadmin?
- wp_update_user not updating
- Is WordPress’ is_user_logged_in() secure?
- Temporarily disable user role login and replace with message
- how to add custom user capabilities using add_user_meta or something else?
- Is there a way to set the user Role based on email domain
- pre_get_posts Remove posts based on meta value with ‘post__not_in’
- What is the difference between “create_users” and “add_users” capabilities?
- Access on specific pages in wordpress for a specific user
- How to ‘unpublish’ or ‘hide’ posts when user role changes?
- Hide Specific User Page
- Let new user role to ‘edit_others_posts’ of other user role, not of its own type
- How can I have different groups of editors only allowed to edit certain parent+subpages?
- Hide everything on site for visitors except specific page IDs
- How do I remove the Other Roles field (from User Role Editor plugin) in wp-admin/user-new.php
- How to redirect specific post type with user role
- wordpress editor role remove all but ‘menus’ in appearance menu
- Parent User and Child User – relate users
- How to create user specific pages (not user role!)?
- Assigning certain authors to specific editors
- Restrict Access in Admin Panel
- Limit a user to have access to only specified pages?
- Plugin creation – how to add user rights?
- Restrict custom post content to specific user
- Need to block user role from accessing bbPress all together
- How to create a front facing user sign up, log in and profile pages like FoodGawker.Com [closed]
- Infinite redirects at front end if logged in user is not an Admin (Toolset Access)
- Is there a way to allow users with “Subscriber” user role to access media library in backend and frontend
- How to make WP page accessile only to specific user roles
- grant multiple roles access to specific admin menu item
- How to show private pages based on a user’s role?
- Check what capabilitie(s) an action requires
- Is it possible to restrict a specific user to edit a specific custom post.
- Assign specific editor with custom user meta “A” to all authors with custom user meta “A” and exclude all other author access
- New folder and file permissions are not correct
- How to change user role setting in members plugin so that user can only edit his own post?
- How do I make a draft post accessible to everyone?
- Allow roles below admin to add subscribers only
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- How to force listing contributors in authors dropdown menu
- How do I allow a specific Role in WordPress 3+ to only see certain plugins?
- Allow editors access to added plugins
- Change role after the user has read all the posts in a category
- Do custom user roles have any default capabilities?
- Can i copy administrator role to another user?
- How to prevent users with “edit_others_posts” capability from editing admin posts
- Change the user role after x days
- Restrict certain posts from being sent to the feed subscribers
- Locking Down WordPress Application Password Permissions / Capabilities
- Restrict dashboard access for specific user roles to specific actions
- How to let someone preview a draft?
- How can I allow user to select minimum privilege smartly
- Remove wordpress author’s capability to moderate comments on their own posts
- Contributor disable seeing others’ posts
- Prevent Editors from Editing/Deleting Admin Accounts
- access the plugins for each role in WordPress multisite
- Listing child pages depending on user capability (role)
- How do I display user name, role and site name using HTML tags inside a dashboard notification?
- Displaying different in-page content to cliente/admin
- User Role Capabilities for WordPress Gutenberg Blocks
- Iframe disappears when author updates page
- How to change a user’s role conditionally to expire after two weeks
- Stop users of author role from editing already pending posts
- Check role of Username then echo something if administrator [closed]
- Force modified contributor role to be re-approved on edit?
- List users of an array of roles
- WordPress Login redirection according to user role
- How to exclude subscriber from the list in wordpress
- Want to know parameters that can be passed to user_can() for access control by user capabilities
- Block user roles from accessing the WordPress dashboard
- Can we hook the Customizer on a post or page on the front of the site?
- User role editor – Add download files capability
- Error while creating a clone role in wordpress
- Custom Plugin – Blacklist/Whitelist domain email and change user role – Suggestions
- Change auth_cookie_expiration for specific roles and specific login times
- Set user role, if an specific role created an user
- Allow user to select role from front end edit profile form
- Custom user roles are unable to login
- Restrict Author to post only to a specific category
- How to show only specific category post by user role without plugin and restrict all other cats
- Custom User Role – can’t edit or publish pages?
- Dropdown of user roles that depend on variable
- How do you make a custom post type invisible for subscribers
- Add role selector to custom registration page
- Multiple user role on registration
- How can I remove “Add new” button on custom post type
- Why does user_can return false for a capability during plugin deactivation?
- Removing Admin Bar Node Based on Role
- Create an email address that forwards to users in role
- How to update user role totals
- Restrict Access to the User Profile
- How to give members access to their own protected page?
- Front-end ajax problem all users and guests getting a 302 redirect when accessing wp-admin/admin-ajax.php
- How to assign a custom gender to a user role?
- assign roles to users in custom drop down in signup form
- Hide block of HTML if the users role is a certain role
- How might I enable a user to view Draft pages from a different Author, without the ability to edit?
- Display users by role