title: Custom WooCommerce PHP Search with Dropdown
body: <p>I added the following code to a php widget on my site in order to search the site by product category via a drop down box. </p>
  
  <pre><code>&lt;form role="search" method="get" id="searchform" action="&lt;?phpbloginfo('siteurl'); ?&gt;"&lt;div&gt;
  &lt;label class="screen-reader-text" for="s"&gt;Search for:&lt;/label&gt;
  &lt;input type="text" value="" name="s" id="s" /&gt;
  &lt;?php wp_dropdown_categories ($args = array(
  'taxonomy' =&gt; 'product_cat',)); ?&gt;
  &lt;input type="submit" id="searchsubmit" value="Search" /&gt;&lt;/div&gt;&lt;/form&gt;
  </code></pre>
  
  <p>I can't figure out why any the search isn't returning any hits. When I look at the search results something seems off. I see only the search term and the category number (example="?s=flour&amp;cat=17") Any guidance on where to start reading is most appreciated. </p>