Display list of authors in a dropdown menu using wp_dropdown_users

Adding this snippet to your wordpress template will display a list of authors within a dropdown menu linking to their author profiles. I also excluded the default user ’1′ as the administrators would also be display. This is a comma separated list so you can remove any users that you don’t wish to display.



<li id="users">
<h2><?php _e('users:'); ?></h2>
<form action="<?php bloginfo('url'); ?>" method="get">
$args = array(
'exclude'                 => '1',
'name'                    => 'authors',
'who'                     => 'authors'
<input type="submit" name="submit" value="view" />

Leave a comment