In WordPress Show All Blog Authors in Dropdown List

You may be handling your blog by your own and you are the only author. But if your blog readers increase simultaneously then you might consider the of hiring some quality authors to wrote in your blog to fulfill huge expectation of your readers. Then you might want to list out all of your authors in a list so that readers can easily access all the post by any specific author. You can easily add the function in your blog by using wp_dropdown_users WordPress function. You can pass many arguments and pull out author information. See the doc in function link. OK Now lets learn to show all blog authors in dropdown list.

To apply anything a first you have to allow PHP in widget area if you want place it in widget area. In our example we have added the list in widget area. Now add the following code in widget area by using Text widget:


<li id="users">
<h4><?php _e(‘MTG Team:’); ?></h4>
<form action="<?php bloginfo(‘url’); ?>" class="drop-down" method="get">
<?php wp_dropdown_users(array(‘name’ => ‘author’)); ?>
<input type="submit" name="submit" value="view" />



Here is the output in front-end:



To see all the posts of certain author just select the author and press view button:



Please left any query in comment below:

Author: mytutorialguru

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *