Try get_user_by()
:
get_user_by( $field, $value );
In your case, you’d pass ID, and the user ID:
// Get user object
$recent_author = get_user_by( 'ID', $recent["post_author"] );
// Get user display name
$author_display_name = $recent_author->display_name;
Related Posts:
- How to remove the author pages?
- Select subscriber as author of post in admin panel?
- Echo author ID in author.php
- How can HTML be allowed in Author Bio?
- How to get post author name by its ID inside a function?
- If Else Gravatar Author Picture
- Displaying custom post types in author.php
- Order the users by the date of their latest post
- Permalink to user profile
- No authors in change author dropdown
- Show author archive pages for authors with no posts
- More posts from the current author
- List authors of site with link and gravatar
- User Published Post Count
- Custom size for image uploaded to custom field in user profile?
- What capability allows someone to change a page’s/post’s author?
- Just wanted to Pull Author’s Link
- list author’s posts in author.php
- add capability to author role to be able to delete attachments
- Get the excerpt for a post created by the related author
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- WordPress Author Page
- Editing the loop for Author pages
- What is wrong with this code?
- I only want to Display Author Link in authors bio
- How can I add “posted by ‘author'” to each post?
- Is it possible to get_terms by author?
- no emails for a user account
- Show selected value in a drop down menu
- Can I stop authors from changing the font in their post?
- Author page doesn’t change after username change [duplicate]
- Output author and description if description is not empty
- Author bio Social Links
- How to link avatar and nickname to profile
- Author custom fields post meta, the code?
- Change destination of author link to BuddyPress member profile
- Filter Author Bio
- How to remove the dropdown author data from the post edit page
- Get last revision author, author-link and date
- Multiple Unique Author Profiles
- WordPress doesn’t show all posts of a specific author
- How to add child page to author.php
- Custom avatar image link added to the profile page
- Restrict user role Author from viewing comments in admin interface
- How to get all possible arguments for a wordpress function
- What does the class look like that is returned from WP_User_Query?
- Most recent post is missing from Author page
- I have two problems ( SEO )
- Difference between last_name and user_lastname
- Changes show up in view source but not live site
- Declare global var from Template File and use it in Functions.php
- Getting list of top 10 users and sort on last name
- get_the_author_meta not working
- How to let authors only see website stats for their posts?
- how to get page views of author page?
- Get 404 when try open author page
- WordPress User role → Fetch and Print(echo)
- Get Author Count By Day, Week and Month
- Detect and make links nofollow in author description
- Conditional/Check: IF author has no First Name THEN
- Display Authors Selectively
- Display a list of all post from the Author in the author’s page (author.php) in alphebetical order
- Authors divided alphabetically
- Author Page List – change to show authors instead of not subscribers
- How can I get all author written content?
- Display all authors in a theme template
- post author if statement
- How to show list authors with at least five posts published
- Display posts differently depending on which author wrote it
- How to have certain WordPress settings set by default on a per author basis
- Filter Author Link for Numerous Authors for each to go to unique page
- WordPress Posts Multi Author without using plugin
- can’t see information on author page that don’t have posts
- Automatically Switch between two AdSense accounts based on the author post
- How to create many author’s page?
- Show all authors in drop down panel while choosing author for a post
- How to add author on WordPress Pages? Not blog article page
- Can’t use Persian/Farsi in Author slug (returns 404)
- Author.php Page views counter
- get_author_posts_url() Not working
- Creating a button from data from Author meta
- How to get the Author type Label Language
- Sticky post of current viewing author?
- How to get latest page (not post) of User and display the content
- How to change the post author when the post is published?
- Remove post author using child theme
- Show infos only to the author in the author.php
- if else for custom $curauth-> field
- Author.php display profile for all types of users
- Return one of user’s post from a category in user’s profile
- Exclude Author by ID
- Removing “HTTP://” From the_author_meta?
- Editorial Process
- Multiple Authors per post and filter post by author
- Permission to change post Author
- Replace author with custom field in feed
- why is there an author.php
- author.php get current id of author for advance custom field
- the_author function is displaying wrong name and url
- How to add avatar to authors list?