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
- Find out if logged in user is not subscriber
- Get multiple roles with get_users
- Delete all subscribers from wp_users and wp_usermeta a few thousand at a time
- Get the name of user who updated post
- Disable delete user
- Change user’s display name programmatically
- Set user after wp_create_user?
- Search multiple meta keys at once
- Redirecting user after updating profile?
- How to add new custom field in default add user form through plugin
- Can I bulk register contributors for a new blog
- show cimy user fields in users.php with manage_users_columns
- Why i getting blank user_activation_key in get_user_by( ‘login’, $login ) function?
- how do i get a greeting for logged in uses by the time of day
- How can i create an array user meta?
- Restrict users post for himself
- When I try to login in wordpress it is showing “USER Doesn’t Exists”
- how to get WordPress admin user table columns name in my plugin
- Limit a number of users returned from sorting users by latest posts function
- Will wordpress tools import do everything I need to copy one site to another
- Create Next and Previous Link to User orderby Last Name
- Accessing current users data within a plugin
- Spam users registers even when registration is disabled
- Limitations when adding new users
- User description only displayed for logged user
- Fetch all data of Users
- Get an array of all users of a custom role type to send an email notification on post update
- How to make Users sort in reverse order by default?
- How to get ID of Edit User page during wp_handle_upload_prefilter, whilst in Media picker?
- Querying specific table row by current user login
- How to make current user’s avatar + display name link to their profile?
- Import users once a day without a plugin
- Custom capability for a single user
- Allow Weak Passwords
- How do I modify the user role ‘subscriber’ to allow the user to delete posts
- delete_user_meta from a foreach results page
- Is it possible with a code snippet to display a green dot on top of every avatar on a WordPress site for each user that is online?
- How to display all user profile info in myaccount page wordpress
- wordpress Account Management generate password missing on my laptop
- Safely changing UserID’s, re-using deleted UserID’s and automatically using deleted userID’s instead of an increment
- How to make custom user profile page public?
- Disable emails for new user registration
- Query for post term that matches user ID
- Change user URL
- User email verification without a plugin, is it possible?
- How To Find The ID Of All Registered Users?
- How to expire guest users after 1.5 hours logged in?