Dropdown sidebar filter by category?
-
I am importing about 800 post from an only cms to wordpress and these post do not have a category or tag.
Manually adding tags and categories is a hell of a job! So I was wondering.
is it possible to make a search box containing 3 different preselected drop-down menu’s that users can choose from. The search would then filter based on these preselected words. This will kinda function like a category.
This is what I have so far
<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='s' class='postform' > <option value='0' selected='selected'>All</option> <option class="level-0" value="dog">dog</option> <option class="level-0" value="cat">cat</option> </select> Colour <select name='+' id='+' class='postform' > <option value='0' selected='selected'>All</option> <option class="level-0" value="white">white</option> <option class="level-0" value="black">black</option> </select> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>
But rather than searching for dog AND white. It searches for dog OR white.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Dropdown sidebar filter by category?’ is closed to new replies.