You’ll definitely need custom code for this. Understanding how to create custom queries via WP_Query() will be immensely helpful. You will also need to modify the ‘perm’ parameter for WP_Query() to change the results based on user permissions.
https://codex.wordpress.org/Class_Reference/WP_Query
https://codex.wordpress.org/Class_Reference/WP_Query#Permission_Parameters
If the native WP_Query parameters still don’t give you exactly what you’re looking for you may need a custom filter to run after the query to remove posts from the result set based on an is_user_logged_in() check.
Related Posts:
- How to programatically change username (user_login)?
- How to restrict access to uploaded files?
- Allowing users to edit only their page and nobody else’s
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- Allowing an email as the username?
- Check if specific username is logged in
- Post list based on the user that is logged in
- Basic auth WordPress REST API dilemma
- Copy a user from one WordPress site to another
- Front end user meta options for users
- How to customize wp_signon()
- Can I create users that have access to *some* other users posts instead of all other users posts?
- Set default page for user account in admin
- Share user table from WP with Drupal
- Log all users out of all locations after 24 hours
- Hide everything on site for visitors except specific page IDs
- Managing Users and Creating Groups [closed]
- show text If special user is logged
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- How to disable a specific page for a specific user
- Allow user access to Dashboard only!
- Restrict access of admin uploads to certain logged-in users?
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- Problem with automatic role change through cron job
- Reset Password policy
- How can I allow an User to publish only 5 posts per month?
- Where are $current_user->allcaps set?
- How do you manage your pages or functions that require logged-in users?
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- Delete a user from frontend
- Unique password to access a section site
- One Click Access To Users Account In WordPress?
- Using my own user table
- WordPress user role with create user capability?
- Update user role for expired membership
- How to use url formatter with integer
- Custom User Role: Can Edit Own Page, Cannot Create New
- WordPress install checking permissions of user id 0
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- Allowing users to edit only their page and nobody else’s
- How to bulk change user role to “No role for this site”
- Restrict Access to the User Profile
- Username has been exposed
- view and update form only for registered users
- Control Category of each user can post
- Limit user access to installing/configuring a plugin?
- determine active user browser at the same time
- MySQL query to list users who never signed in
- Wordpres password as plain text in email
- WordPress password as plain text in email
- (How) does WordPress protect direct access of user data?
- How to remove/limit Editor accounts privileges, to prevent them from deleting media and pages created by Admin
- How to implement friend system for WordPress?
- Custom Query for count_user_posts function
- Delete user after Contact Form 7 submission [closed]
- cannot get user_registered date from get_user_meta
- Delete Users without a First and Last Name
- Display video on homepage for users who have not logged in
- Best way to get user id for get_users function?
- Customising “user ids” and add to ‘user’ panel in the admin area
- Add a sub menu page to the Users menu
- Get usermeta info from sql query
- Confirm Deletion not found
- Get current user array into hyperlink
- how do I add role and capability after I create a new user
- Get Authors Role
- Need to exclude users with no posts from my contributors page
- link variable to user
- Changing user of post by changing ‘post_author’ field in ‘wp_posts’ table not taking effect. Where is the real post author info kept?
- How to safely trigger password reset emails for thousands of users
- wp_insert_user error
- How to remember which page the user was on before logout?
- SQL to set Display Name to First Name + Last Name
- Create users by importing from CSV, with User ID assigned from CSV
- Moving users from joomla to wordpress
- How to customize user rest api?
- Deleted users still able to login
- Hook into add_user_role and update based on new and removed roles
- Auto approve new users if their username is included in a predefined list
- Check for empty username or password on login
- How do I tag every author in their posts that they have made previously
- Updated user role inncorrect when using wp_get_current_user()
- How to create members?
- Custom registration fields not appearing in user info
- Creating custom pages for new users automatically
- Output checkbox per user and save in plugin options
- Access level seems to have gone from admin to editor
- How do I change the user via SQL?
- force registered user as seller
- Not able to call value in the core files
- Fetching posts that match a User Profile setting
- Privacy in WordPress
- how can i inform other users about new user registration? [closed]
- How to display Most Recently Read 10 Posts by a logged in user in wordpress
- WordPress – Security Question at Login from User’s Meta Data
- get Discussion setting in wordpress
- Remove My Account Menu items in Woocommerce based on user roles