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
- How to restrict dashboard access to Admins only?
- Check if user is admin by user ID
- Email user when password is reset by admin
- Where the Nickname is being used in WordPress
- Is it possible to sign in with user_email in WordPress?
- How to update the delete user confirmation form?
- How to work around “that email address has already been used” error?
- Show content only if member left a comment
- How can I run a WP-CLI command as authenticated user?
- Is it possible to add taxonomies to user profiles?
- How to redirect a specific user after log-in?
- create users to site with specific language
- How to Prevent deleting user accounts in WordPress Back-end?
- Adding a photo to each WP user
- WordPress edit_user_profile_update update secondary role
- Order get_users() by last login date. Is it possible?
- Check if user is online?
- Assigning a role to a specific custom post type (and ignoring other post types)
- Is it possible to duplicate users on a new WordPress install?
- How to use search_columns in WP_User_Query?
- WordPress to use Drupal users’ credentials
- Allow anonymous users to post to my site for moderation
- How do I list in the backend all users that were assigned to a custom role?
- Mass Import Users without sending new user notification
- How to add local users to wordpress without email password?
- WP User Query fails when searching meta queries and search columns
- Suddenly all emails in User have [email protected]
- Query users by capability – uninstall/deactivate callback
- How to add a user profile page to frontend?
- How to read individual user’s directory and display content to that specific user?
- Users disappeared from wp-admin
- Custom Fields – Taller editing area
- List all private pages user has access rights to read
- Register user when after filling contact form
- Is possible to allow user to login with different role?
- Showing author page if user has no post
- How to create a dashboard widget for one user
- Getting author URL outside the loop
- Pagination only won’t work in author template
- How to allow registered users to submit the form only 5 times per day?
- Most recent post is missing from Author page
- Hide comments and posts posted by other user
- get comments by current user inside page template
- WordPress current month users
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Allow Users to Modify Some Values of Assigned WordPress Pods [closed]
- Mutliple users editing single document in wordspress
- Front end post and upload file, image for users without plugin
- Make new users automatically approved
- Using Same User Database on Subdomain
- Add a custom post when inserting a new user in WordPress?
- Cannot select certain authors for posts after import
- What does “link” refer to when you delete a user?
- Pagination in author, category, archive and tags pages does not work
- set automatically email address for WordPress users
- Why User_login key doesn’t work with wp_update_user()
- Use WP cookie to authentificate user on an external app
- If user has clicked link add class and store using PHP/WordPress
- Allow user only create specific tags
- How do I add profile fields in specific section?
- fine-grained capabilities for user related capabilities
- On button click, redirect users to registration page instead of another page
- Users activity history
- How can I store user preferences in WordPress and retreive them later?
- create a table using user meta custom data
- Query to show average # of months all accounts with specific role have been active
- Get all wp_users sort by metakey
- Custom User Role: Can Edit Own Page, Cannot Create New
- Link fields in User Admin list
- How to restrict Admin from creating new users from Add new user screen in dashboard to only of one domain?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- How to add number to wordpress count function?
- Cannot login in WordPress even after changing hash password in phpmyadmin
- WordPress User profile page fields missing
- Edit dashboard based on user ID
- Pagination for custom query throws 404 errors on last pages [duplicate]
- is_user_logged_in() not working after domain change
- import (migration) user database to wp-users
- Designing a member area on my site
- Redirect authors from upload.php url to Home page in Multisite
- Get selected value with PHP and jQuery
- Getting invalid user ID error when creating a new user with wp_insert_user