On an author archive page (assuming the plugin uses the core archives) get_queried_object()
will return the WP_User
object for the author. Something like:
$author = get_queried_object();
if (is_a($author, 'WP_User')) {
var_dump($author->data);
}
You should see the login, nicename, and display name in there. Use what you need.
Related Posts:
- How can I default to all WordPress roles when parameter is not included in shortcode?
- get_users(…) only returns one user
- Modify user profile data through scripting?
- php if username is role
- create front-end users post list by specific category
- Generate a QR code when creating a new WordPress user
- How to block specific user id in custom login form?
- Get current user id in function php
- main menu page redirects to user ID
- Displaying Logged-In User Name in WordPress Menu
- Create a global variable for use in all templates
- Add extra field to users
- Integrating WordPress to my website, while keeping my own authentication system
- How to auto login user again after change user_login
- What is the most efficient way to search users by their display name?
- Network installation giving errors when viewing or adding a user
- Showing user ID on user main page from screen options
- Getting the Current User
- How do I add a php statement to a jQuery string
- Authenticating to WordPress, using my own authentication two-factor system
- How to track a users progress through pages by inserting data into WordPress Database?
- the_author_meta not working
- Removing WordPress profile fields from non-admins
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- Delete option value from array using update_option()
- Passing the page ID to a login php script
- How to display user nickname (not display name) in PHP template?
- How to get a list of all possible values of a specific user meta key?
- Custom profile field with birthday. Troubles with
- User’s total comment count excluding comments on their own posts
- Reordering Buddy Press profile navigation [closed]
- User management system similar to wordpress one?
- Add New User, extra fields which are required?
- user_profile_update_errors hook not executing
- Open post-content in archive page in a Modal box with bootstrap
- add_cap not working
- Do not execute If User is login as Administrator or any Specific Role
- wordpress archive a user
- php function to display commenter username or login
- Best practice for show data to one specific user?
- WordPress Stripping Colons?
- get_users meta_query: REGEXP not working for matching new lines
- Change CSS based on is_user_logged_in
- How to show a users bio on a page
- “operation successful” message
- Making (and edit existing) posts with ID included
- Is it possible to create new user from external form using REST API?
- Foreach loop inside an array_merge
- Override user-edit.php to design own profile page
- Show current user posts only
- show something only when user comes from specific page at remote host?
- Show site content based on user role
- How to list users like an archive page 10 users on page and have navigations
- Redirect to current user page upon link click
- Customize field names in backend profile edit page through function.php [duplicate]
- Use of antispambot with $curauth->email
- Uses for function: wp_update_user
- Change wordpress’ database data using ajax – how to get current user id?
- Sort column in Users admin Tab
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Woocommerce display orders with products from specific categories to specific admins
- Storing huge number of users in wordpress
- Admin Panel 404 Error after login
- how can I call a function when time expire
- Display a custom name when the user has no name settle in his account
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Uploading/integrating custom user registration page
- If user has clicked link add class and store using PHP/WordPress
- Store data from JavaScript object to custom table in user account
- Page template not working when logged out
- Redirect user to a custom url after logged in
- How to change the value of a variable using input field?
- How do I track which user clicked my button?
- Allowing Non-Latin Characters In WordPress Registration
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- Add another role to a user when they click a button?
- Query to show average # of months all accounts with specific role have been active
- wordpress more than one ajax request at the same time issue
- Can’t get_users info by using json_encode
- Editable Student file associated with basic User ID
- Adding users to another blog
- Changing WordPress author name in database
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Loop 1 user randomly
- How to set max users to 17.000
- How to ‘remember’ a site member’s last visited page?
- How to connect database table to each registered wordpress user.
- Get author meta of all writers
- Let users register weight each day and save it in DB
- Display a list of users with avatar filterable with alphabets
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Check if username doesn’t exists
- WP query with variables gives no result for specific user
- How to lock users account until approvation
- How to create a User Role and give permission to only use Web Stories plugin?
- How to create custom user role without plugin?
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID
- How to add custom user role into wordpress