Wordpress

How to List All Authors From Your Blog in WordPress

In Multi-Author blogs, it is great to list all authors, so the reader knows who is behind the site. We have written a guide with 21 Great Plugins to Manage a Multi-Author WordPress Blog Efficiently. In this tutorial we show you a manual code that you can use to list all authors from your blog.

You need to place the following code where you want to display this list:

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

That will display the list. Now here are some parameters so you can adjust and tweak the code to your needs.

  • exclude_admin: 0 (include the admin’s name in the authors list) / 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)

The plugin called List Authors Widget does this for you, but if you want to do it manually above is the way you can do it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s