The get_userdata function is what you are looking for. So for the display_name it would be
$user_info = get_userdata($user_id);
$profile_display_name = $user_info->display_name;
And for first and last name it would be
$full_name = $user_info->first_name . " " . $user_info->last_name;
Related Posts:
- Search result based on URL
- Filter Custom Post Type Posts by Taxonomy
- Get meta values from parent post and save in child post
- Using WordPress custom post type to display StoryMapJS
- News post with multiple permalinks? When opened from different page
- Change Search display for Custom Post Type
- Show parent category and subcategory once in while loop
- Custom search for a custom post type in WordPress
- Having issue on Loading Meta Data From CSV to CPT
- Rewrite URL of Specific Post of Custom Type
- Custom Taxonomy – fields
- Custom Post By Category
- Display a list of sub-pages of Custom Post Type Parent Page
- test if something is a post or a taxonomy
- Stored meta from attachment, video length?
- WordPress trying to query two custom types to get child from the parent
- tax_query not working?
- PHP Notice: Unidentified index
- How to get the posts that my following users are liked?
- How to mix 2 kinds of post types
- CPT: execute code after load if parameter is set
- Wrap each child and it’s grandchildren separately
- Add active class to foundation 6 tabs while looping categories
- Print post category name from a custom post type wordpress
- Create unordered list from custom field type entires separated by a comma
- CPT post doesnt shows tags and category on backend admin page
- Duplicate posts in my custom loop
- ACF Post Content Not Being Searched
- Include images from pages in wp search.php results in default wp search
- Display related post content and custom field content
- The most recent post of custom taxonomy
- Custom 404 redirect for a luddite
- How to make sure, that only the selected post is changing?
- Show tags of custom post types in WordPress
- WordPress loop add heading before first of type
- How do i create user accounts from custom posts that have email addresses
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Strange behavior on WP_query
- get_post_meta for Custom Post Type ( CPT )
- UPDATED: Save a custom_field value when automatically creating a post using wp_insert_post
- WordPress query posts by custom post type not workng
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- WP_Query return highest number only
- Meta box not saving
- Show custom taxonomy not in submenu
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Featured image in custom post is being disabled
- Can’t pick up a field created with Advanced Custom Fields
- Pods pagination erases my sub menu
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- can’t see categories in appearance-menu-categories
- Loop carousel slider in wordpress
- Meta Box not being added in plugin
- How to Fix WordPress 500 Internal server error due to custom post type
- Custom Post save causes 500 error
- Why is my custom post type slider only displaying the latest slide?
- Why isn’t my custom post type using the corresponding custom post template?
- Custom post tag images not displaying with ACF
- Get month and day from a Date Picker custom field
- wordpress form processing to custom post type not working
- WordPress custom field images not getting inserted into array
- Function not pulling image or text from custom post type
- predefined custom field on registration page
- Meta-Box to add multiple items one at a time and on publish save all
- Values inside a custom field to determine which category posts to display
- Custom Search not working
- Exclude Custom Post Type from shared Custom Taxonomy
- Show Custom Post Type taxonomy term that matches custom field
- WordPress Custom Post Type and sort by Tags
- using ACF datepicker to filter posts on a page
- How to call Shortcode categories for custom post types?
- Posts without featured image using other post’s featured image
- Order by custom field attribute
- WordPress multi-query not returning as expected
- Trying to combine multiple WordPress queries
- Return all wordpress custom posts in specific multidimensional array
- How to loose the image ‘alt’ attribute in my custom post type?
- Add number in increment of one to DIV ID
- Custom Post-type not returning the right child_of
- Select Menu for Custom post Type does not save
- Looping taxonomy in taxonomy?
- Permalink of Custom Post Type
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- Custom Portfolio String
- posting twice from an array?
- Stop header code from showing in category page?
- is_singular won’t call my functions?
- Pagination not working on homepage
- Custom Loop for custom post type. Compare by meta_value?
- Query Custom Post Type by Tag
- What is the most efficient way to manage changes my product comparison tables?
- Dynamically change Custom Post Type Template OR Change Permalink?
- Cant we use a PHP file directly like myhome.com/some.php?
- Code in custom widget queries all posts, when it should only query the current post
- WordPress Set A Static Page/Template For All Sub-Pages
- Order custom post type is beign ignored
- Add HTML before a specific div?
- Inserting two categories
- Allowing a CPT post to be edited by a single user role