get_the_author_meta( 'ID' )
gets the ID of the author of the current post. If there’s no post there’s no author.
Use get_queried_object_id()
instead. When used on author archives (i.e. author.php) it will be the ID of the author, regardless of whether or not they have posts.
Related Posts:
- Completely hide user info
- Is there any function available to echo current user’s profile url?
- How to create page for user?
- Change the Author Slug from Username to Nickname
- Make display name unique
- How to display a public profile page for registered users with custom slug?
- Change the author slug from nickname to ID
- How to let contributors to create a new revision(draft) editing their published posts
- Display edit link if post author is current user
- Force display name as full name
- How to create a public profile for authors/contributors/users?
- Force users to complete their profile after they register? How to
- Upload gravatar in WP profile?
- Authors Page : A page of authors
- add ‘file upload’ field to user details
- Drop down list in user profile page
- Total Word Count For Posts And Comments By One Author
- Custom style on profile options page
- Users roles, make a page belonging to multiple users
- Add custom fields to the user profile
- Cannot set user passwords
- How to add local users to wordpress without email password?
- Disable user profile editing for one user
- the_author_meta(‘user_url’, $author->ID) not working properly. how can I solve this?
- how to make a profile entry read only except for site managers [closed]
- Forcing WordPress to work differently
- Remove user profile field [duplicate]
- How to add a user profile page to frontend?
- Where is the information about the authors for articles stored?
- Is there a way to make custom fields only editable by administrators?
- Multiple Unique Author Profiles
- Getting author page slug from get_users() or get_userdata() functions
- Delete User via Frontend
- Editable registration date field in user profile
- How to force authors to ‘submit for review’?
- Profile page for user roles
- Create Next and Previous Link to User orderby Last Name
- User profile updates password even if not filled (Theme my login) in Firefox? [closed]
- How to implement friend system for WordPress?
- How to Create a User Profile Page?
- Prevent subscribers to changing certain profile fields
- Create a “user log”
- How to display text if profile fields are not filled?
- What is correct way to change user’s email?
- Author comment count in author page
- How to hide user profile fields based on the role of the viewed user?
- Order users by user role
- How to make current user’s avatar + display name link to their profile?
- Give users alternative/second avatar that is rectangle sized
- User can manage one page accessible by everyone?
- redirect user to their profile after log in
- How can I set wp_dropdown_users so that it shows only authors?
- How to display all user profile info in myaccount page wordpress
- How to add extra field in profile page and show in myaccount?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- How do I update user email from frontend input field?
- How to display extra fields for user
- I need a link that directs the user that is logged to his profile
- How can i display pagination in custom comment list?
- How can i add user display name drop down menu in frontend?
- How to make custom user profile page public?
- How do I tag every author in their posts that they have made previously
- update custom field user profile from front end form
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Showing extra profile fields in admin – problem with underscore
- Restrict Access to the User Profile
- How do I change the user via SQL?
- Add an ‘edit profile’ page with Genesis
- Manage user profiles with WordPress
- Separate Profiles for Users
- Add new user and user bio at same time
- Fetching posts that match a User Profile setting
- How to create a link to a user’s profile page
- show count author post today
- Validate user meta and redirect
- Designing a member area on my site
- Link to Authors blog posts
- Storing additional information about the user
- Modify Profile Biographical Info Field
- How to create front-end (editable) WordPress user profile pages?
- Disable editing profile for second time
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- Cant edit profile from frontend
- Can we get user profile page using user_id in the URL?
- Hide Admin Menu for Specific User ID who has administrator Role
- Do not allow users to create new posts and pages
- Admins can’t edit each other’s posts
- Update user_login to change username
- Multiple authors with different “author roles”
- Exclude subscriber users from user list
- Exclude admin from user list
- Can i add password field into my wp registration form?
- User capability for editing their own comments
- Allow Contributors to Upload Files
- Load user by specific role
- New User Save Filter
- How can admins to be notified of changes when users change their WP profiles?
- wp-admin/users.php Add a column with last name
- get_users – Sort by a different meta_value than search criteria
- User agent stylesheet distorting site [closed]