WordPress Author Functions

About This Index
This page is the WordPress Author Functions index. Each row links to a full guide with syntax, examples, and FAQs.
Learn what author template tags are on WordPress Author. Use this page when you need one function, such as the_author(), get_the_author(), or wp_list_authors().
Start with the_author(), then get_the_author(), the_author_meta(), and the_author_posts_link().
How to Call an Author Function
Put these tags inside The Loop in your theme file. Functions that start with the_ print. Functions that start with get_ return a value.
<?php while ( have_posts() ) : the_post(); ?>
<p>By <?php the_author(); ?></p> <!-- prints the name -->
<?php $name = get_the_author(); ?> <!-- returns the name -->
<?php the_author_posts_link(); ?> <!-- prints a link -->
<?php endwhile; ?> WordPress Author Functions Table
All function guides in this WordPress author series (10 tutorials).
Display name
3 functionsShow or get the name of the current post author.
| Function | Description | Tutorial |
|---|---|---|
get_the_author() | Return the display name of the current post author. | Read guide |
the_author() | Print the display name of the current post author. | Read guide |
the_author_meta() | Print one profile field of an author, such as display_name or description. | Read guide |
Links & URLs
4 functionsLink to the author archive or the author's own website.
| Function | Description | Tutorial |
|---|---|---|
get_author_posts_url() | Return the URL of an author archive page. | Read guide |
get_the_author_link() | Return an HTML link to the author's website, or just the name. | Read guide |
the_author_link() | Print an HTML link to the author's website, or just the name. | Read guide |
the_author_posts_link() | Print a link to the author archive page, using the display name as text. | Read guide |
Counts & lists
2 functionsCount posts and list all authors on your site.
| Function | Description | Tutorial |
|---|---|---|
the_author_posts() | Print the number of posts written by the current post author. | Read guide |
wp_list_authors() | List the authors of your site with links to their archive pages. | Read guide |
Admin helpers
1 functionBuild a user drop-down for forms and admin screens.
| Function | Description | Tutorial |
|---|---|---|
wp_dropdown_users() | Create an HTML select box (drop-down) of site users. | Read guide |
Frequently Asked Questions
Start with get_author_posts_url()
Get the author archive URL, the first guide in the sidebar.
15 people found this page helpful
