Best way i think would be to add an array of read post IDs to the user meta table and use them in the ‘post__not_in’ Parameter in the pre_get_posts hook. In my mobile right now, so i will edit this answer once i’m at work to insert a code example.
Related Posts:
- Want to Add Custom Fields for Uploading video to WordPress Users from front end
- how to delete all users and posts based on ‘user_meta’?
- Users create/join groups
- Autofill advanced custom field with user data
- UPDATED: Save a custom_field value when automatically creating a post using wp_insert_post
- Creating multiple profiles under one user to assign to particular posts
- Display and Allow users to edit their own profiles
- what is the correct way to compare dates in a WP query_posts meta_query
- Custom post type for ‘staff’ versus using wordpress user profiles?
- How to get post content by calling ajax?
- How to show all posts of the category in wordpress?
- Display a query with multiple post types and same relationship on a single page
- How to filter custom posts by tags and custom fields?
- Order by & include array by specific post ids
- Prevent trash/delete action on specific post types
- How to call a custom post with get_posts() instead of query_posts()?
- Querying custom posts and regular posts
- Retrieving 3 latest post from each of 5 different custom post types
- How to hook get_terms() to only show count of posts that have custom meta
- how to group custom post type posts by custom taxonomy terms
- Using Query Posts With Multiple Post Types And A Taxonomy
- How can I get the last posts by user role?
- Query post types with multiple keys
- WordPress allow access only one custom post type “xyz” to custom user role but need to hide all admin panels
- pre get posts changing the query
- Get permalink and title by post name?
- Get all posts WHERE custom_field is LIKE value
- ‘category__and’ for custom taxonomy?
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- reference the current category being used in the category.php page
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Sort by custom field is not working
- Sorting multiple custom post types without a meta key/value pair by sort order
- Custom post types instead of regular post’s categories in a page template
- Change or update WordPress loop based on dropdown selection
- Display custom post type from dynamic custom field
- Archive for custom taxonomy lists all posts instead of current taxonomy
- List children on child post
- child of post type (custom)
- Roles for Custom Post Types
- Page template with different page and post content
- will post_id ever change? Can I safely use post_id for custom queries?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- How to restrict author to only access one custom post type ?
- Create custom post with custom user rules
- BBPress Search results in WordPress search
- pagination not working for category.php (custom post types in categories)
- Filter date from post meta when date is in string format
- How can i display movies in profile page, added by an user?
- Custom query – get_the_terms not work
- 3 random images from custom post type, each in a div with a diffrent class
- Control content before and after custom post type loop
- Assign post type to many users
- why is the current page title being output?
- Count custom post type based on two meta data
- Not able to export large no. of posts in csv
- attach CPT data to a taxonomy
- Check if user has comment on current post
- Targeting custom post type via functions.php doesn’t work
- Dynamic category name in query post
- Meta box with front-end styling
- Custom Post type showing up in loop, regular posts are not showing up
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- Query for bbPress replies to current topic?
- Sorting the Loop by Taxonomy Value
- Custom Query: Multiple CPTs and a taxonomy filter
- Display custom post front end filter by ACF equals current user
- Custom wp-query display post only today
- Clone wp-admin/users.php (Users Admin Page)
- Link custom post type to users membership
- Filling custom post type posts from a rest api
- Conditional editing CPT – using editor’s role and author’s usermeta
- Trying to list years (for a filter) but not all years display
- Creating a custom post type upon registration for a specific user role
- Modify default Related Posts Code to Custom Post Type
- How to select meta key in custom database query
- Get all of a user’s posts (custom post type) then get cumulative value of a specific meta_key value from those posts
- update a posts of other custom post type
- Imported Content Doesnt Show Up On Frontend
- Optimise custom post type queries
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- How to get Last post Id of custom post type in wordpress
- Would like to add a “leaderboard” (custom field) to a custom post type
- display news with pictures 3 small and one large (loop)
- Filter RSS feed for custom post type to events for next 7 days only
- Using $seed on a custom post type for randomly displayed posts
- Display a post count from a custom metabox selection
- Custom post type blog pagination conflict
- Multisite – Echo admins profile meta
- What’s the best way to show custom post types? With page template it’s not perfect!
- Query custom type posts by array of IDs
- How to display Author Profile based on Custom field value
- how to show Author post type count
- How can I get user URL by id
- Trying to set up a range filter for related custom post types
- Display ACF object field data using Elementor Custom Query