The function you are using, get_most_recent_post_of_user
, won’t work as it only retrieves the latest post from the author. It cannot retieve a list of posts
Walks through each of a user’s blogs to find the post with the most recent post_date_gmt.
You will most probably be better of using either WP_Query
or get_posts
to achieve this.
You should first add all your author ID’s in an array or use a custom function to dynamically get them, and then use a foreach
loop and loop through all the separate ID`s and using each ID in a custom query to retrieve the latest 5 posts from that author
Related Posts:
- How to display posts by current user/author in a custom page template?
- Show the title of the latest post by author
- How to get single post by one author?
- Get Posts Under Custom Taxonomy
- How to show related posts by category
- Hook that get’s triggered when the author of a post is changed
- the_author() returns empty string
- get_children() Not Working with orderby Parameter
- How to get all posts related to particular category name?
- How to show list of posts by author and category?
- How to add editor’s name to entry meta byline?
- Search posts by post author name
- Get the user type of an author
- Setting pagination for images attached to a post
- Find most recent authors
- Query only Posts from Both of Two Category?
- Show author post count in sidebar – Variable
- Get the author of the latest revision
- Filter posts by author and category simultaneously
- WordPress get posts by date without query_posts
- Get all posts by post_author
- Authors in menu, template list post by author
- Posts are not showing up on particular category
- get selected post using $_GET
- How to get most recent commented post above new submitted post in WordPress?
- Two posts are loaded instead of one?
- setup_postdata doesn`t seem ot be working
- Get Posts via Taxonomy Term Name with Space
- Get specific posts by ID in wordpress
- Display most recent post on homepage?
- Automatically republish old posts
- Show info to author only
- get_next_post() and get_previous_post() return wrong posts
- Auto “expire” all of an authors posts on spcific date
- How to get the user meta data for a post?
- Get posts by name and taxonomy term
- Inserting custom data to the_post() during loop
- How can I show many posts an author has per week?
- Get mixed category random posts
- WordPress not opening posts with only numbers if permalink is post_name
- Limit popular posts by days
- get_the_content(“more…”) returns full text
- Whitelist Author of Private Post
- Post Loop Missing Most Recent Post
- Display Notification Bar on Header on Certain Post Count
- How to get posts from a current post’s month?
- How do I retrieve a users’ last 5 posts?
- obtain the author id given the post id
- While loop articles – if statement order
- Count number of posts of current month
- Conditional Tag for has post [closed]
- Display author’s name and avatar in post’s sidebar
- static landing page leading to author specific pages w/ “live” content
- Display Posts with template on a Page
- Why posts array is empty?
- How to create a “latest news” page showing a list of posts from blog category
- Post Filtering by GET URL parameters
- How to get the ability to change the author of a post
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- Add hero image to home page (blog format) via the dashboard
- Related Posts function not working
- How to limit author related post listing ?
- Get total post from an author
- Why aren’t paragraphs breaking on this page?
- Change Author Name to Sitename on Frontend
- Exclude a category of posts in author template
- Showing recent post of category in page
- If post does not exist, do something
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Get posts from current category?
- Send email to admin with post author
- Prevent 404 of Author pages without posts
- How to add content above footer in posts from specific category
- Restricting displayed posts to posts from only select authors
- Author post count in category
- How to mark only one post as Featured post?
- What permissions does a role need for the user to be assigned as the author of a post?
- REST API Working for GET but not for POST?
- Fill the exclude array() in get_posts()
- How to convert return type of ‘get_posts()’ same as ‘wp_get_recent_posts()’?
- How to get all posts in gallery post format template
- Changing the Category for all posts of an Author
- List of authors posts minus very latest
- How to get the current user post and it’s ID?
- show latest authors blog post
- Retrieve latest post by multiple categories with ID
- External link not showing on post but showing on comment
- Create a Page Template Which Displays All Posts by Current User
- Set the limit to allow author when make post!
- How do I paginate posts page with $wpdb?
- How to get all post titles starting with numbers and symbols?
- Bulk Attach Or Insert Media To Post Without Opening Post Editor
- Notify Author of the post if admin deletes his post and perform some function
- get_posts includes “auto drafts”?
- How can I add Author’s phone number to wp profile and make it appear in wp-admin/edit.php columns
- wordpress show category link instead of post link [closed]
- posts_per_page – Repeats only first posts ‘post__in’ array
- NewsPaper WP Theme – Additional Related Posts Filter by Time (divTag composer)
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Translation related post text to Arabic