Codex tools: Log in
Contents |
Retrieve the post author. This tag must be used within The Loop.
To display a page for authors which have no posts, see this discussion.
<?php $author = get_the_author(); ?>
Grabs the value in the user's Display name publicly as field.
<?php $author = get_the_author(); ?>
Since: 1.5.0
get_the_author() is located in wp-includes/author-template.php.
the_author(), get_the_author(), the_author_link(), get_the_author_link(), the_author_meta(), get_the_author_meta(), the_author_posts(), get_the_author_posts(), the_author_posts_link(), get_author_posts_url(), get_the_modified_author(), the_modified_author(), wp_dropdown_users(), wp_list_authors()