Hello!
I'm trying to add a checkbox search function on my Wordpress website but I'm a bit stuck (my PHP and Wordpress coding skills is not the best). I have tried this:
But it only allows me to search for one of the phrases even though I check both the checkboxes. Also I can't use it together with the regular text input search field, again it only allows me to search for one of the phrases. If I write Bus in the text input search field and check both the checkboxes I want the search function to show posts/pages that contains both Bus, Car and Bike. Is it possible to do that in some way?Code:<input type="checkbox" value="car" name="s" id="s" /> Car <br /> <input type="checkbox" value="bike" name="s" id="s" /> Bike <br /> <input type="submit" id="searchsubmit" value="Search" />
/Woolwich


LinkBack URL
About LinkBacks
Reply With Quote