On an “author” page get_query_var('author')
will give you the ID.
get_queried_object()
will get you considerably more author information.
$author = get_queried_object();
echo $author->ID;
// var_dump($author); // to see all of the information available.
For retrieving custom author data follow the Codex.
Related Posts:
- Get $curauth level
- Authors Page : A page of authors
- wp_list_authors including custom post types
- author.php shows profiles of all users not authors only
- Create Next and Previous Link to User orderby Last Name
- Use different template than author.php for get_author_posts_url()
- Displaying Total Author View
- get_comment_author_link not working properly
- Get Authors Role
- Quest and filter posts by author ID on author page
- Is there a maximum number of author for a blog?
- Use of antispambot with $curauth->email
- Change author base and slug in author link
- Author page from blog post
- How to Modify Author Page for all Users?
- Get $curauth level
- WordPress function that retrieves both posts written by a specific author& posts that contain a tag matching author’s username on author archive page
- If the current user is an administrator or editor
- How to check if a user is in a specific role?
- How to change the default registration email ? (plugin and/or non-plugin)
- Getting a List of Currently Available Roles on a WordPress Site?
- Editor can create any new user except administrator
- How do I add a field on the Users profile? For example, country, age etc
- How To Add Custom Form Fields To The User Profile Page?
- Multiple developers / editors working on a site in progress
- How to check if a user (not current user) is logged in?
- How to restrict dashboard access to Admins only?
- How do I display logged-in username IF logged-in?
- Admin Page Redirect
- How to allow an user role to create a new user under a role which lower than his level only?
- user_login vs. user_nicename
- How to programatically change username (user_login)?
- Allowing user to edit only certain pages
- Why are my roles not visible in a Multi-site/Network?
- Custom post type for ‘staff’ versus using wordpress user profiles?
- Change the Author Slug from Username to Nickname
- How to search for (partial match) display names of WordPress users?
- Remove Ability for Other Users to View Administrator in User List?
- How to use same email for multiple users
- Adding fields to the “Add New User” screen in the dashboard
- How to search all user meta from users.php in the admin
- How to check if a user exists by a given id
- Difference between update_user_meta and update_user_option
- Where can I find documentation on what characters are allowed in user names and why?
- Make display name unique
- Make WooCommerce pages accessible for logged in users only
- Find out if logged in user is not subscriber
- WordPress usermeta scaling for thousands of users
- How many users can WordPress handle?
- How do I programmatically set default role for new users?
- How to get WordPress Username in Array format
- How to filter users on admin users page by custom meta field?
- Display user registration date
- Is there a is_user_logged_in() for multisite?
- Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
- Override WordPress user with Oauth2 account
- Get multiple roles with get_users
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- get_user_meta() doesn’t include user email?
- Update post counts (published, draft, unattached) in admin interface
- Confirmation required on email change
- How to Merge Two Authors Into One?
- Whats the best way to share user data across multiple WordPress websites?
- get_current_user_id() returns 0?
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- How to bulk delete all users with no posts?
- Commenting in user profile page?
- How to get userid at wp_logout action hook?
- Groups of capabilities: users with multiple roles?
- Is there a way to merge two users?
- User-edit role setting distinct from wp_capabilities? [closed]
- How to Display a List of Users Who Have Made at Least 1 Post?
- List users by last name in WP_User_Query
- What’s the difference between the capability remove_users and delete_users?
- How to restrict access to uploaded files?
- WP_User_Query and non-unique usermeta data
- Automatically delete inactive users after 2 months
- Use author author display name in permalink structure for pages and posts
- Check if user is admin by user ID
- How to change user_login with wp-cli?
- Delete all subscribers from wp_users and wp_usermeta a few thousand at a time
- Email user when password is reset by admin
- Replacing the WordPress password validation
- Ban a user and end their session
- Allowing users to edit only their page and nobody else’s
- How can 2 blogs share the same users
- How to display a public profile page for registered users with custom slug?
- alphabetically order role drop-down selection in dashboard
- Can an admin check passwords of registered users?
- Find out who deleted a page or post?
- WordPress auto login after registration not working
- WordPress Multisite allow site admin to add user without email confirmation
- wordpress multisite, how to keep user on subdomain throughout registration process?
- Change the author slug from nickname to ID
- Why does get_users suddenly return duplicates?
- How can I query all users who registered today?
- Prevent trash/delete action on specific post types
- Execute a function when admin changes the user role
- How to check username/password without signing in the user
- How to let contributors to create a new revision(draft) editing their published posts