Last active
February 27, 2017 13:39
-
-
Save jchristopher/29f34bf3e75062572254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>"> | |
<label> | |
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
<input type="search" class="search-field" placeholder="Search..." value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ); ?>" /> | |
</label> | |
<?php | |
// output all of our Categories | |
// for more information see http://codex.wordpress.org/Function_Reference/wp_dropdown_categories | |
$swp_cat_dropdown_args = array( | |
'show_option_all' => __( 'Any Category' ), | |
'name' => 'swp_category_limiter', | |
); | |
wp_dropdown_categories( $swp_cat_dropdown_args ); | |
?> | |
<input type="submit" class="search-submit" value="Search" /> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment