Are you looking for a way to display a list of all authors on your WordPress blog? While there’s probably a plugin for this, we have created a quick code snippet that you can use to list all authors using wp_list_authors
in WordPress.
Instructions:
All you have to do is add this code to your theme’s index.php file:
<ul> <?php wp_list_authors('exclude_admin=0&optioncount=1&show_fullname=1&hide_empty=1'); ?> </ul>
Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.
If you liked this code snippet, please consider checking out our other articles on the site like: 9 best WordPress help desk plugins and how to fix error establishing a database connection in WordPress.
[…] This post was mentioned on Twitter by Y Combinator Newest!, HN Firehose and newsery3, WPSNIPP. WPSNIPP said: #wordpress List all authors wp_list_authors http://bit.ly/f1Zo1n #blog please RT 🙂 […]