Call echo $GLOBALS['wp_query']->query_vars['author_name'];
and it should show you the author.
You can also echo $GLOBALS['wp_query']->post->post_author;
or echo $GLOBALS['wp_query']->queried_object->post_author;
.
hope i didn’t mix up with arrays and objects.
Related Posts:
- How to remove the author pages?
- How to get author’s name by author’s id
- How can I publish a post with two or more authors?
- Displaying custom post types in author.php
- Order the users by the date of their latest post
- Permalink to user profile
- Show Author in custom rss feed
- No authors in change author dropdown
- More posts from the current author
- List authors of site with link and gravatar
- User Published Post Count
- What capability allows someone to change a page’s/post’s author?
- How to get posts without author?
- Just wanted to Pull Author’s Link
- list author’s posts in author.php
- add capability to author role to be able to delete attachments
- Get the excerpt for a post created by the related author
- get the username of a user in his author page
- Editing the loop for Author pages
- How can I add “posted by ‘author'” to each post?
- no emails for a user account
- Show selected value in a drop down menu
- Can I stop authors from changing the font in their post?
- Author page doesn’t change after username change [duplicate]
- Output author and description if description is not empty
- Author bio Social Links
- How to link avatar and nickname to profile
- Author custom fields post meta, the code?
- Change destination of author link to BuddyPress member profile
- Filter Author Bio
- How to remove the dropdown author data from the post edit page
- Multiple Unique Author Profiles
- How to add child page to author.php
- Restrict user role Author from viewing comments in admin interface
- How to get all possible arguments for a wordpress function
- Author list based on recently active
- Authors & profiles (and exclude ID’s)
- Most recent post is missing from Author page
- I have two problems ( SEO )
- Difference between last_name and user_lastname
- Author name is not working on category page
- How do I create WordPress Authors Dropdown with links
- Migrate different author’s content to current author
- Display A list of Admins
- Different posttypes for different authors
- Remove author bio from posts of a specific author
- Get all media files for current author
- Author’s Id from wp list authors function
- get_the_author_meta not working
- How to let authors only see website stats for their posts?
- how to get page views of author page?
- author_link filter not work correctly
- Auto assign author to new posts with wp_insert_post_data
- Author Box Meta Issues
- Conditional/Check: IF author has no First Name THEN
- Display Authors Selectively
- Display a list of all post from the Author in the author’s page (author.php) in alphebetical order
- Display All Authors only
- How to show user role in author.php
- How to conditionally output to sidebar of each author’s archive and posts by each author?
- ACF Relationship – Exclude pages not created by author
- Can change twentytwelve_entry_meta “by-author” links?
- set post author depending on condition via frontend post submit
- Author Page List – change to show authors instead of not subscribers
- How can I get all author written content?
- Can’t change author to myself after post published
- Author page points to 404 error page
- If statement for is_author of a post
- WordPress Authors not showing with User Submitted Posts plugin
- Authors to be able to customize their author pages?
- How to target a post by a sepecific author?
- WordPress Posts Multi Author without using plugin
- List of all authors avatars
- Get top authors for the last 30 days with posts count and avatar
- Automatically Switch between two AdSense accounts based on the author post
- When clicking on author, it shows my email address in url
- Show all authors in drop down panel while choosing author for a post
- How do I edit disclaimer/contact information?
- How to add author on WordPress Pages? Not blog article page
- Yoast SEO plugin open graph add meta tag to fetch Avatar from Author Page
- Can’t use Persian/Farsi in Author slug (returns 404)
- Author.php Page views counter
- Co Authoring with different positions
- How to remove author from Social sharing links?
- How to add authors contact info to author metabox in post editor?
- Variable undefined but it is defined
- WordPress Author Information show paragraph?
- the_author_meta not resetting
- Php markup question: php/html within conditional bit
- Show infos only to the author in the author.php
- Return one of user’s post from a category in user’s profile
- Multiple Authors on a Single Blog
- Want to add a custom author link to a single.php
- Editorial Process
- Multiple Authors per post and filter post by author
- Uncode theme, create author page and author link under the blog
- Replace author with custom field in feed
- author.php get current id of author for advance custom field
- How to load locally saved author photos based on author ID
- the_author function is displaying wrong name and url