Try
echo the_author_meta( 'nickname', $current_user->ID );
or you can also use;
$current_user = wp_get_current_user();
echo $current_user->nickname;
Related Posts:
- How do I display logged-in username IF logged-in?
- Problem with Hebrew characters in username
- Allowing an email as the username?
- Change user’s display name programmatically
- Pre-populate Username Field
- Update user_login to change username
- How can i change the name order in the admin?
- How to let the users edit their user names?
- I want to change my user name
- How to change default username field after login
- Username has been exposed
- Remove Ability for Other Users to View Administrator in User List?
- Where can I find documentation on what characters are allowed in user names and why?
- Automatically delete inactive users after 2 months
- Allowing users to edit only their page and nobody else’s
- Limiting the number of users
- Force display name as full name
- ‘username_exists’ still returns an ID even after deleting record from the database?
- Track logged in users’ visits
- order users with drag’n’drop?
- include user profiles in search results?
- Plugin that would allow WordPress Authors to “follow” other Authors and query “Activity Info” from that
- How to delete users with no order history through phpmyadmin sql?
- User profile custom field
- Authors Page : A page of authors
- How-to Delay The Capability To Publish Posts?
- Multiple Single Installs of WordPress with a central user base
- Authenticate user using Hashed Password in MySQL Query and C#
- What do spammers gain by signing up as a user?
- add ‘file upload’ field to user details
- Gravity Forms Submit form as another user
- get_userdata by username
- How can I check if the admin bar is visible to the current user?
- Redirect User to Homepage if no other redirect is specified
- Set default page for user account in admin
- Searchable meta value in user.php
- How wordpress retrieves user info?
- Find out who created a certain user?
- Locate authors on Google map version 3
- trying to list users & display first – last name
- Get users order by meta key with limit
- Hide everything on site for visitors except specific page IDs
- current user can edit user?
- WordPress Authentication Middleware
- Add email addresses to already registered users
- How to set show admin bar front to true for all users?
- show text If special user is logged
- Multiple Backend Users as single Frontend User
- Forcing WordPress to work differently
- Does WordPress Importer notify imported Users?
- Can user login details be used for other applications?
- Bulk create clean user_nicename from user_email with SQL function
- Updating wp_user_level on user update
- How can I attach a user to another user with user meta
- How do I protect user_activation_key?
- WP not logging in at first time
- How to get last user with wpdb?
- How to Create a User Profile Page?
- List Users alphabetically with heading
- How to default/force the user’s display_name to their nickname?
- Restrict access to non-wordpress section of site with user roles?
- how to remove email field from default user registration form on wordpress
- How can I change “Users” related labels in the wordpress dashboard
- Does it matter if the very first user, usually Admin, does not have a user ID of 1?
- How to set default’ => $current_user->user_login
- User can manage one page accessible by everyone?
- How to add an attribute to a user?
- Can i use two different user tables for on WP install?
- SELECT from wp_users, get Displayname too
- Redirect current user to their most recent custom post
- how redirect users to custom login page when “login to reply” is clicked? [duplicate]
- Making WordPress available while logged into another website
- Get user ID when action row link is clicked
- Advanced Custom Fields Plugin: how would I get an image src path uploaded from User Profile?
- Whenever I got to my new pages (http://www.cwmags.com/news) it requests login?
- how to delete in phpmyadmin sql – all users with certain condition and all dependencies
- Author Error “Sorry, you are not allowed to access this page.”
- How to give guest users “not logged in” a role?
- How to Moderate Edits to User Profiles?
- Front-end uploader logging user out when they attempt to upload image
- Upon running wp_insert_user() WP Keeps Saying user_login is already in the system when it isn’t
- wp_insert_user always tries the same user name
- Limit a user only to wp-cli only use
- What is the best user experience for user to perform an action using email?
- Registration page as homepage
- How to add karma points to users?
- WordPress install checking permissions of user id 0
- How to do a search based on the user’s location & search term and return proximity-based results?
- Store extra user values permanently
- New User ID not working in custom function with user_register hook
- Error when send reset password
- How to disable users changing their display_name?
- Are there any hook or filter when adding new user in WordPress?
- Creating Custom user type just like custom post
- Control Category of each user can post
- Have users created automatically when a network site is created
- How-To: Get meta data from the users last order in woocommerce
- current_user_can() returning true for capability when the user and role do not have the capability
- WordPress password as plain text in email
- Allow Html pages for users with specific roles