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.

Adding this snippet to your wordpress theme will allow users to search your website but also allow them to select a specific category as well. By modifying the arguments within “wp_dropdown_categories” you can exclude categories or even specify the specific order of categories within the list. The following options are available:

About wpsnipp

WPSNIPP Was founded in 2010 by Kevin Chard and is a free resource dedicated to WordPress covering a wide range of topics. With over 640+ WordPress snippets, we also have tutorials, plugins, gallery and deals to enhance all aspects of your WordPress theme or blog.