I am trying to figure out how to create a drop down to use as a filter with the search form. I would like the options to be the different post types. I've seen on other sites that -
<select name="posttype"> <option name="product" value="product" style="color: #000;">Legal Documents</option> <option name="videos" value="videos">Legal Advice - Videos</option> <option value="link">Legal Advice - Links</option> <option value="text">Legal Advice - Articles</option> <option value="post_type_c">An Attorney</option> </select>
What do I have to change or add to the search results page so that then correct post types are shown and filtere?