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
- Call to undefined function get_userdata() in plugin
- 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
- Help getting previously visited pages ID
- How do you create two separate Register pages?
- get_the_ID() in the footer returns wrong value
- Use post ID in functions.php file adminside
- 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
- echo esc_url( get_permalink($post->ID) + complete the ID’s url
- Change page password every day (predictable password ;) )
- show something only when user comes from specific page at remote host?
- Get the users that my following users are following
- Show site content based on user role
- ‘pre_user_query’ interfering with user export
- Custom User Registration script only allowing usernames with 16 characters
- How to list users like an archive page 10 users on page and have navigations
- How can I call a specific file (via php) by referencing the logged-in username?
- 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
- Display additional user fields
- Give ID to divs inside the loop
- Change wordpress’ database data using ajax – how to get current user id?
- Sort new column in Users wp-admin
- 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 to count active users on a specific page
- how can I call a function when time expire
- Hide Approved status for certain users in users list
- 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
- Trying to get post ID outside loop on blog page
- Uploading/integrating custom user registration page
- If user has clicked link add class and store using PHP/WordPress
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- How to get the url of the entry in which an image belongs
- How to add locations input to user profile?
- Store data from JavaScript object to custom table in user account
- Export WordPress User Meta to CSV/Excel
- Updating User Profile information removes image
- Page template not working when logged out
- Redirect user to a custom url after logged in
- Allow specific user to edit a specific page
- How to change the value of a variable using input field?
- Display current user metadata on WordPress page
- How do I track which user clicked my button?
- Help hooking into user_register
- Allowing Non-Latin Characters In WordPress Registration
- How to auto-generate random numbers in username?
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- Use WP user status (logged_in) to manage access to independent application
- 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
- is_user_logged_in() not working in homepage
- wordpress more than one ajax request at the same time issue
- (Who to follow) Twitter widget
- 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
- Matching multi user
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Loop 1 user randomly
- Update only some custom user fields
- List users in a dropdown for login
- How to set max users to 17.000
- Trying to display user meta by “name” – not by “ID”
- How to ‘remember’ a site member’s last visited page?
- How to connect database table to each registered wordpress user.
- Adapting a php array to WordPress
- Get author meta of all writers
- Let users register weight each day and save it in DB
- WordPress display name string manipulation
- Display a list of users with avatar filterable with alphabets
- Cross origin ajax request always returns 0 when calling get_current_user_id();
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Forbid certain users to access a specific page
- Check if username doesn’t exists
- One folder to be accessible by one user