Custom Search Form with category and year filter
-
Hi,
I have created a custom category template in which I have placed a custom forum to search results in that category only. I want to add year filter to it so that results are filtered by year.
This is what I have as of now.
<form role="search" method="get" id="searchform" action="https://localhost/demo/category/news/"> <input type="text" name="s" id="s" value=" " onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/><br /> <select name="post_type"> <option value="">Choose Category:</option> <option value="5">All Categories</option> <option value="1">News</option> <option value="2">Archived</option> <option value="3">Popular</option> </select><br /> <input type="submit" id="searchsubmit" value="Search Help" /> </form> I need to add year filter to this
- The topic ‘Custom Search Form with category and year filter’ is closed to new replies.