WordPress wp_list_authors() Function

Beginner
4 min read
Updated: Nov 2026
3 examples
Template tag

Definition

In WordPress, wp_list_authors() lists the authors of your site. Each author name links to their archive page.

By default it prints list items (<li>). Put the call inside a <ul>. Pass an array of options to show post counts, hide empty authors, or return the HTML.

Syntax

Call it with no arguments, or pass an array of options.

WordPress
wp_list_authors();
wp_list_authors( array(
  'optioncount' => true,
  'exclude_admin' => false,
) );
CallWhat it does
wp_list_authors()Prints list items for all authors who have posts.
wp_list_authors( $args )Prints the list with your options.

You can call it in a sidebar, a footer, or an "Our team" page template.

Full declaration
WordPress
wp_list_authors( string|array $args = '' ): string|void

Parameters

ParameterDescription
$argsOptional. An array of options. See the table below.

Common arguments

ArgumentWhat it does
optioncountShow the post count after each name. Default is false.
exclude_adminHide the user named admin. Default is true.
hide_emptyHide authors with no posts. Default is true.
show_fullnameShow first and last name instead of the display name.
stylelist gives list items. none gives a comma separated line.
echotrue prints the HTML. false returns it.

Return Value

Return ValueDescription
void (prints to the page)When echo is true, which is the default, the list is printed.
stringWhen echo is false, the list HTML is returned.

WordPress Examples

Three short theme examples. Each one has a sample output.

Example 1 — Basic list

Print a simple author list inside a <ul>.

WordPress
<ul>
  <?php wp_list_authors(); ?>
</ul>

How It Works

  1. The function prints only the <li> items.
  2. You add the <ul> yourself.
  3. Each name links to the author archive.

Example 2 — Post counts and full names

Show the number of posts and use first and last names.

WordPress
<ul>
  <?php
  wp_list_authors( array(
    'optioncount'   => true,
    'show_fullname' => true,
  ) );
  ?>
</ul>

How It Works

  1. optioncount adds the post count in brackets.
  2. show_fullname uses the first and last name.
  3. The array keys are the option names.

Example 3 — Return a comma list

Return the HTML and print it inside a sentence.

WordPress
<?php
$authors = wp_list_authors( array(
  'style' => 'none',
  'echo'  => false,
) );
echo '<p>Written by: ' . $authors . '</p>';
?>

How It Works

  1. style => none gives links separated by commas.
  2. echo => false returns the HTML.
  3. You join it with your own text and print it.

Frequently Asked Questions

It lists the authors of your site. Each name links to the author archive page.
By default exclude_admin is true, so the user named admin is hidden. Set it to false to show it.
By default hide_empty is true, so authors with no posts are not shown.
Pass 'optioncount' => true.
Pass 'echo' => false and save the result in a variable.
Yes. With the default style the function prints only li items, so wrap the call in ul tags.

Back to the index

Browse all ten WordPress author functions in one table.

Author Functions Index →

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.

9 people found this page helpful