Hello i use this code to allow my readers to filter the search results by targeting a specific category.
How can edit it to make 2 options of categories groups? I have 20 categories. I want the first option to filter 10 specific categories and the other option to filter the other 10.
<form role="search" method="get" id="searchform" action="<?php bloginfo('siteurl'); ?>">
<div>
<label class="screen-reader-text" for="s">Search for:</label>
<input type="text" value="" name="s" id="s" />
in <?php wp_dropdown_categories( 'show_option_all=All Categories' ); ?>
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
Thank you.