Inside The Loop you can use the Template Tag the_author() to display or get_the_author() to return the same. For an introduction to outside the loop usage take a look at the Q&A’s at the thread How to get Author ID outside the loop on here.
Related Posts:
- the_author_posts_link css class
- How do I get the author’s page url from their ID?
- Current post’s author name in the author meta tag
- Allow authors to post only in categories they create in WordPress
- Missing Author Information
- Get_the_author doesn’t return author name
- the_author() not working outside the loop
- When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Retrieving Author ID in wp-admin area
- Storing Array from returned database query and using the array in a new query
- Getting the author name on author archive page
- edit_comment_link is not showing for comment author
- Remove author link wherever author’s name is display
- Noindex Posts From Certain Authors In WordPress
- Noindex subscriber author page
- How to hide the author box of a specific user?
- Comment_author_url doing nothing
- Create condition for Author bio Social Links
- How to change the author box selection on a post to a custom taxonomy
- Remove Author Links
- WordPress redirect to a subpage – how to create a template for subpage?
- Show all people who commented on all posts by an author
- Show sidebar only to author of post
- Posts missing on author page
- Return author name as a tag using get_author
- Send Notification to all users that followed some author
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- Send email to users when they get new followers
- How to make a parent page for author.php?
- Changing WordPress author name in database
- Showing the authors username and bio on custom author.php
- How can I output the slug of a comment author?
- How to have Function of a plugin using global vars into a shortcode?
- When I use rewind_post() it shows menu items in my loop
- Assign new post author IF another user in custom field on post transition
- Create guest author page via php
- RTL Stylesheet Confusion with WordPress
- Non-Closing PHP Query in WordPress Loop
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- get_template_part() not firing within a switch statement when template has new WP_Query
- How to show/hide php table rows based on the content of custom fields
- How to determine from a different folder (outside wordpress) if a visitor is logged into WordPress
- Is a series of update_option calls safe, performance wise?
- How to call multiple functions from multiple files into a WordPress page template [closed]
- how to get serialized post meta
- Scheduling an event inside plugin class is not working
- How to catch wordpress post ID when it’s published
- What is the best way to define constant options for a theme?
- How to access or parse key/values that have “string”
- WordPress widget and customize.php not working in Ubuntu16.04 VPS
- wp_localize_script() and JavaScript namespaces
- Class property seems to lose scope, attached to save_post action?
- get_template_part function and add images
- exclude custom post type from running a function
- Anonymous functions usage
- WordPress – Get Posts with Category data
- Change Language Title Pagination on Subdomain non Multisite
- Call to “admin_notices” hook from a static method
- How to Create custom block for displaying information in content section which act like shortcode
- How to use Page link field with is_page()
- Running SMTP Conditionally
- How can I pass php code as a content while publishing a post
- How to change PHP variables with AJAX request in WordPress
- Trying to show the category of a post in the post display
- Trying to get property ‘ID’ and ‘post_author’ of non-object error
- 500 Error, Get custom field and returning it
- How do I add this OnClick event script to a custom button I’ve created?
- How can i limit the number of posts to the most recent 6 in my query?
- Allow specific user to edit a specific page
- Post content, PHP help
- PHP error after theme update
- Access certain Entry in HTML-Table and pass the entry-data in WP not working [closed]
- is_user_logged_in() not working in homepage
- Custom Post type Ajax search results
- I want url from a file in media using title file
- Creating a custom register form
- how to get buddy press messages based on thready_id?
- Widget Logic – display on page and all child
- How to associate dynamic PHP page for chosen WordPress tag?
- Get dimensions of logo
- Add custom filter to register data in array
- Passed variable gets undefined variable error on insert on next page
- Rename Index.php
- Display a post based on its metabox selection
- Why does WP_Query show only the same post even with different categories and endwhile?
- How to display different widgets on specific pages, hide from other pages
- How to print array of specific item
- js code not stored in database currectly
- echo php values in table – strange behaviour, not all values are shown
- Changing posts date
- php-page with db connection
- if is specific custom post in cpt
- I updated my version of php and got error
- translating a custom taxonomy term in a shortcode
- how can I get the selected term of a custom taxonomy
- Getting checkboxes for some tags in a search box
- WordPress move current to top in the loop
- How to change product SKU’s in bulk with a plugin
- BrowserSync not detecting PHP files in WordPress + Laravel Mix