wp_list_authors

AUTHOR TAG

What It Does

Displays a list of all the blog’s authors, linking the author’s name to all of their published posts. There are additional parameters that you can use to display other information such as the total numerical number of their published posts.

Code

<?php wp_list_authors(‘arguments’); ?>

Example

The default usage is as follows:

<?php wp_list_authors(); ?>

If no arguments are set, the following usage is executed by default:

<?php $defaults = array(
‘optioncount’ => false,
‘exclude_admin’ => true,
‘show_fullname’ => false,
‘hide_empty’ => true,
‘echo’ => true,
‘feed’ => ,
‘feed_image’ => ); ?>

The above default usage would execute the following:

‘optioncount’ > Does not display the total number of published posts
‘exclude_admin’ > Excludes the admin author from the generated list of authors
‘show_fullname’ > Displays only the author’s nickname. If true, will display the first and last name.
‘hide_empty’ > Does not display authors who have no published posts
‘echo’ > Echos (displays) the list
‘feed’ > Does not display any author feed text
‘feed_image’ > Does not display any author feed image

To set any of the parameters as false, either use the word “false” or the number “0″.
To set any of the paremeters as true, either use the word “true” or the number “1″.

The following example will display the author’s full name instead of the default nickname along with the number of published posts, and will also list authors who have not yet made any published posts.

<?php wp_list_authors(‘show_fullname=1&optioncount=1&hide_empty=0′); ?>