title: How to search custom post types with custom taxonomies and custom fields
body: <p>I am trying to create a custom search for properties(custom post type) in wordpress. Category(Sale and To-Let) and Location(Dublin 1,Dublin 4,etc) are taxonomy(custom taxonomy) and price(10000,etc) is populated through a function which I match(less than or equal) to the custom field(acf) price so I have to create a query which is includes taxonomies and custom fields. The other two custom fields(acf) are display and status(if they are Sold they should not be in the search). When submit is clicked it does pass the correct values and I var_dumped the values when on listings-results page and they are correct. There is something wrong in my query to WP as it will display all the results. </p>
  
  <p>It should search as per the values selected in the select field but it is displaying all results. For Eg: if Sale is selected then only results for Sale should be displayed but it displayed all 15 properties.</p>
  
  <p>Please help I am a newbie in PHP and WP. Please find the link for my code. <a href="http://pastebin.com/9qKgjMnM" rel="nofollow">http://pastebin.com/9qKgjMnM</a></p>
  
  <p>Thank You.</p>