WordPress Author Functions

Beginner
5 min read
Updated: Nov 2026
10 function guides
Function index

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().

Beginner path.

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.

WordPress
<?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 functions

Show or get the name of the current post author.

FunctionDescriptionTutorial
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

Counts & lists

2 functions

Count posts and list all authors on your site.

FunctionDescriptionTutorial
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 function

Build a user drop-down for forms and admin screens.

FunctionDescriptionTutorial
wp_dropdown_users()Create an HTML select box (drop-down) of site users.Read guide

Frequently Asked Questions

They are template tags that show information about a post author, such as the display name, the link to the author archive, the bio, or the number of posts. You use them inside theme files like single.php, archive.php, and author.php.
Functions that start with get_ return a value so you can store it, test it, or escape it. Functions that start with the_ print the value straight to the page. For example, get_the_author() returns the name, and the_author() prints it.
Most of them read the current post author, so they need The Loop. Outside The Loop, pass a user ID where the function allows it, for example the_author_meta( 'display_name', 1 ) or get_author_posts_url( 1 ).
Use the_author() when you only need to print the display name. Use get_the_author() when you want to store the name in a variable or escape it with esc_html().
Use wp_list_authors(). It prints a list of authors with links to their archive pages. Use wp_dropdown_users() when you need a select box instead of a list.
Start with the_author(), then learn get_the_author(), the_author_meta(), and the_author_posts_link(). After that, open wp_list_authors() to build an author list.

Start with get_author_posts_url()

Get the author archive URL, the first guide in the sidebar.

get_author_posts_url() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

15 people found this page helpful