I want to have a search form in one page which has 2 text input fields and a search button. the output should be search results based on below logic:
Input1 - category 1 Input2 - category2, common products of category 1 and 2 should be displayed in the search results. I have tried the below code which returns a blank page:
Page code:
<form action="http://mysite/wp-content/themes/test.php" method="post" name="SearchForm">Cat1 <input id="cat1" name="cat1" type="text" />
Cat2 <input id="cat2" name="cat2" type="text" />
<input type="submit" value="Search" /></f