Top

Daily Tip: How to List All Blog Authors on a WPMU Site

April 8, 2010

We’re often asked how to display a list of blog authors for WPMU. This piece of code does exactly that. Drop it into one of your theme’s template files wherever you want it to display:

<ul>
<?php wp_list_authors('exclude_admin=0&amp;optioncount=1&amp;show_fullname=1&amp;hide_empty=1'); ?>
</ul>

Then you can edit the parameters as shown below:

exclude_admin: 0 (include the admin’s name in the authors) / 1 (exclude the admin’s name from the list)
optioncount : 0 (No post count against the author’s name) / 1 (display post count against the author’s name)
show_fullname : 0 (display first name only) / 1 (display full name of the author)
hide_empty : 0 (display authors with no posts) / 1 (display authors who have one or more posts)

Source: Blog oh Blog

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.