To access the author user object outside of the loop on an author archive, you can do the following:
global $curauth;
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
echo 'This is the author page of '.$curauth->display_name;
Related Posts:
- Creating distinct pages for author profiles and lists of posts by author
- Showing author’s page with no posts
- Show woocommerce products in author archive
- How to add child page to author.php
- Post list based on the page author
- Is author.php a core file?
- Most recent post is missing from Author page
- Can I Include author login in post class?
- Get 404 when try open author page
- Author Page Create Link to Page That Lists All Author’s Posts?
- Unpublish Authors With not Fulfilled Fields
- Display all authors in a theme template
- Author page points to 404 error page
- How to have certain WordPress settings set by default on a per author basis
- List of all authors avatars
- can’t see information on author page that don’t have posts
- How to fix a specific page (author archive) loading speed?
- How to create many author’s page?
- Author page link in comments is different than in posts?
- if else for custom $curauth-> field
- Show the most recent post for an author on the author page
- author.php get current id of author for advance custom field
- the_author function is displaying wrong name and url
- Select subscriber as author of post in admin panel?
- Echo author ID in author.php
- How can HTML be allowed in Author Bio?
- Restrict one post per author
- Display Authors Comments on Profile Page
- Add admin bar link to edit author
- Display all comments or recent comments per user on author page
- If Else Gravatar Author Picture
- Add rewrite endpoint to author page + pagination
- How can an author be subscribed to the posts of another author and receive notifications of the new posts?
- List authors of site with link and gravatar
- User Published Post Count
- How to make an author archive only for certain user role and show related CPT
- Custom size for image uploaded to custom field in user profile?
- Making WordPress author follow button, need missing ingredient
- Get the comment author ID by the comment ID
- Replace Gravatar with img URL for avatars
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- WordPress Author Page
- What is wrong with this code?
- Limit REST API output to current logged in user that is also author of the content
- Display only entire most recent post on author page?
- I only want to Display Author Link in authors bio
- Is it possible to get_terms by author?
- Custom Author Loop
- List user comments in author page
- Author bio Social Links
- Plugin for an author bio popup box?
- Change destination of author link to BuddyPress member profile
- Conditional/Check: IF comment author is the post author
- Get last revision author, author-link and date
- WordPress doesn’t show all posts of a specific author
- Custom avatar image link added to the profile page
- Create Next and Previous Link to User orderby Last Name
- Display Authors in a grid loop
- Author posts url… way to get display name to be url instead of user’s ID?
- How to get all possible arguments for a wordpress function
- What does the class look like that is returned from WP_User_Query?
- Author posts not appearing for custom post type
- Changes show up in view source but not live site
- Declare global var from Template File and use it in Functions.php
- Getting list of top 10 users and sort on last name
- author slug in the backend
- get the headlines of the authors’ last post
- WordPress User role → Fetch and Print(echo)
- Get Author Count By Day, Week and Month
- Detect and make links nofollow in author description
- Working with Gravatars within a localhost development area
- Authors divided alphabetically
- Display more than 10 posts on author.php file
- post author if statement
- Add Post Author body class to WordPress
- How to show list authors with at least five posts published
- Prevent 404 of Author pages without posts
- Create condition for Author bio Social Links
- Best way to set up “reviewed by” in WordPress?
- Filter Author Link for Numerous Authors for each to go to unique page
- WordPress redirect to a subpage – how to create a template for subpage?
- Show all people who commented on all posts by an author
- Custom author url and page for another role
- Return author name as a tag using get_author
- get_author_posts_url() Not working
- Missing content on author archive page
- How to get the Author type Label Language
- Sticky post of current viewing author?
- How to get latest page (not post) of User and display the content
- How to change the post author when the post is published?
- How do you display a comment into a mail?
- Remove post author using child theme
- Author template – separate custom post type by custom taxonomy term for $curauth
- Author.php display profile for all types of users
- Author Link Not Displaying
- Displaying posts limit: can’t get pagination to display [duplicate]
- Exclude Author by ID
- why is there an author.php
- How to force the Author Dropdown to display in Quick/Bulk edit?
- Change get_author_posts_url / Author URL via filter