Codex tools: Log in / create account
Contents |
Displays a list of the blog's authors (users), and if the user has authored any posts, the author name is displayed as a link to their posts. Optionally this tag displays each author's post count and RSS feed link.
<?php wp_list_authors('arguments'); ?>
$defaults = array('optioncount' => false, 'exclude_admin' => true, 'show_fullname' => false,
'hide_empty' => true,'feed' => '', 'feed_image' => '');
By default, the usage shows:
<?php wp_list_authors(); ?>
This example displays a list of the site's authors with the full name (first and last name) plus the number of posts for each author. Also, and by default, it excludes the admin author, hides authors with no posts, and does not display the RSS feed or image.
<?php wp_list_authors('show_fullname=1&optioncount=1'); ?>
Sally Smith (29)
0 (false)
the_author, the_author_description, the_author_login, the_author_firstname, the_author_lastname, the_author_nickname, the_author_ID, the_author_email, the_author_url, the_author_link, the_author_icq, the_author_aim, the_author_yim, the_author_msn, the_author_posts, the_author_posts_link, list_authors, wp_list_authors