Dropdown search select and filter?
-
WordPress search has the option to search multimple words
/?s=searchtring1+searchstring2
Is it possible to have 2 list of preselected searchkeywords as a dropdown and have wordpress press search those?
I have tried
<form role="search" method="get" id="searchform" action="<?php bloginfo('siteurl'); ?>"> <div> <label class="screen-reader-text" for="s">Search for:</label> Type <select name='s' id='type' class='postform' > <option value='' selected='selected'>All</option> <option class="level-0" value="dog">Dog</option> <option class="level-0" value="cat">Cat</option> </select> Color <select name='s' id='color' class='postform' > <option value='' selected='selected'>All</option> <option class="level-0" value="red">red</option> <option class="level-0" value="white">white</option> <option class="level-0" value="green">green</option> </select> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>But the output is
/?s=row1&s=row2
rather than
/?s=row1+row2
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Dropdown search select and filter?’ is closed to new replies.