You should use update_post_meta
with post_readed_by
meta key when a user visit each single post.
you can use the_content
filter to update this with checking the is_singular()
Hope you know how to sort these
Related Posts:
- How to display random users with avatars
- Displaying a random user with a shortcode
- create shortcode to list users with specific meta key value
- How to check if a user exists by a given id
- Logout redirect to current page – function
- Creating a table from shortcode avoiding wpautop for each row
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Stripping shortcode from custom excerpt function
- how to create shortcode in wordpress
- Formatting post content to exclude gallery
- Shortcode with custom content attribute?
- Shortcode to insert menu in page body?
- Using locate-template & shortcodes doesn’t appear to work
- How to update BuddyPress xprofile fields programmatically? [closed]
- Passing HTML in WordPress Shortcode arguments
- Can I pass two roles to the function get_users?
- Function to show only first instance of shortcode
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- Create dropdown of users in admin dashboard
- password protected post policy
- creating shortcode to pull json array
- Custom Shortcode, functions PHP WP_Query loop
- Pass Shortcode Attribute to footer Script
- Super simple shortcode not working
- Display gallery on top before content
- List child pages of specific page using shortcode
- How to extract the variables out from “add_shortcode” function?
- How to add custom fields to my custom registration form
- How to get specified parent page title in my function
- Possible to display shortcode based on the category?
- Variable if post is sticky in functions.php
- Display post shortcode content in the sidebar?
- How to make custom column Admin>Users sortable?
- How to get the index number of the posts?
- Using shortcode content with nested shortcode
- Custom shortcodes not inserting into visual composer columns
- How to filter $content in shortcode function
- Setting youtube size in functions.php
- Adding a colorbutton in tinymce dialog with current api
- Display gallery on bottom after content
- Excerpts are not displayed by a shortcode on category pages
- WordPress Shortcode function display outside of widget
- check if the user is owner of current page
- shortcode help require
- Optimizing a WordPress site
- Use html inside shortcode function
- Condition OR for current user ID
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Function shortcode – Set Parameter
- Using multiple line variable inside a function?
- Echoing function into WordPress NextGen gallery
- How to echo the value of an array element using a function via a shortcode
- Wp-query Order By problem
- How to Use Global Variables Inside Header and Footer
- Secondary Menu and Logged In Users
- How to parse a shortcode within a shortcode?
- Variables not showing in short code
- Filter to wp_list_authors
- How to include any template using Shortcode fuction?
- How to add array [closed]
- How to create shortcode with html and php content?
- Add Link to Users List (Backend) to open each users front-end profile
- Shortcode question
- Can I include a custom PHP function in a WordPress function?
- Suggest Users basing on User taxonomy
- Showing user profile data on front-end
- Shortcode to get featured image of specific id post
- shorthand syntax for custom fields
- Modify function to only return values for the user that’s logged in
- loginout function customization
- Get users with different roles and call function on each of them (user_meta)
- Show errormessages on wrong username/password on custom loginform?
- How can I show different content for different user-levels?
- show all the posts thumbnails
- Problem with shortcode inside a shortcode
- Need help making a short code work
- Display a list of random terms from custom taxonomy with shortcode
- Load templates, pass arguments, and render output from functions.php
- Deleting guests profile users after 1.5 hours
- Last updated posts shortcode in functions.php
- wp_get_current_user return ID = 0 when used outside of wordpress, such as webhook / fulfillment dialogflow
- Display current user metadata on WordPress page
- HowTo: Add wrapper to columns shortcode?
- Shortcode Function – Can’t get anything else to return after running shortcode within shortcode
- Custom shortcode with do_shortcode and substr
- Can I use a function to return HTML and the result of another function?
- Problem in shortcode outputting content
- Expanding a function to call a plugin or show a link
- Trying to the deduce shortcode from a function
- Pull random comment from specific post, display on homepage with shortcode
- Set thumbnail from URL, by grabbing image in functions.php
- Run function from parent on child site
- Gallery Shortcode Function Help
- Echo custom field value in shortcode function
- Shortcode Variations?
- Custom shortcode not being included in content paragraph [duplicate]
- Creating mixture of shortcodes to use in the visual/text editor
- PHP error in shortcode [closed]
- multible shortcodes (for differnt values) with one function
- sort by date in users