WordPress search with more input fields?

Question

I have this example of working search:

<form action="<?php echo esc_url(site_url('/')) ; ?>" method="get">
   <input type="search" name"s">
   <input type="submit" value="search">
</form>

and this works great, but what I want to archive is to make this search work with two more select boxes:

<form action="<?php echo esc_url(site_url('/')) ; ?>" method="get">
   <select name="">
       <option>Option one</option>
       <option>Option one</option>
   </select>
   <select name="">
       <option>Option A</option>
       <option>Option B</option>
   </select>
   <input type="search" name"s">
   <input type="submit" value="search">
</form>

How do I go around to make this post do something like this:
mysiteDOTcom/s=option1+optionb+searchinput ?
Thanks in advance

0
, , Arttyor 2 years 2019-12-28T12:13:10-05:00 0 Answers 88 views 0

Leave an answer

Browse
Browse