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"> <?php $args = array( 'exclude' => '1', 'name' => 'authors', 'who' => 'authors' ); wp_dropdown_users($args); ?> <input type="submit" name="submit" value="view" /> </form> </li>
Did you like this post? If so please share it with your friends. Thanks!