Skip to main content
12 events
when toggle format what by license comment
Aug 9, 2016 at 13:50 history bounty ended Stephen
Aug 8, 2016 at 14:52 history edited birgire CC BY-SA 3.0
added 539 characters in body
Aug 8, 2016 at 13:49 comment added birgire Let us continue this discussion in chat.
Aug 8, 2016 at 13:34 comment added Stephen Yep I have just done that and sadly still no result :( - I appreciate your replies btw :)
Aug 8, 2016 at 13:29 comment added birgire The SQL of the query that is fed with the $property arguments. From your dump it looks like your tax_query is not an array of arrays. Try to copy the array structure I adjusted in my answer. @CoderSte
Aug 8, 2016 at 13:28 comment added Stephen By SQL Query I assume you mean the WP_Query for that page? If so here it is --> Pastebin Query
Aug 8, 2016 at 13:24 comment added birgire I just tested this and it seems to work as expected on my vanilla install. I only get posts that are assigned to all terms in our $input_terms array. What does your SQL query look like? @CoderSte
Aug 8, 2016 at 13:13 comment added Stephen So I've done a var_dump to make sure the query works and it seems to be correct. As for adding in the terms manually to $input_terms I have done that and I still get the result I am getting now with no change
Aug 8, 2016 at 13:09 comment added birgire As a debug step, just use $input_terms = [ 'term_one', 'term_two' ] and make sure the $property array here above returns correct query results. What happens then? @CoderSte
Aug 8, 2016 at 13:06 comment added Stephen Hmmm... maybe I didn't put enough into the question to make it understandable - I have added to the question now. All I want to do is $_GET the URL; check if there is features in the search query and if there is return result depending on that query. However if there are 2 terms in the query only return the Properties with both terms
Aug 8, 2016 at 13:01 history edited birgire CC BY-SA 3.0
added 14 characters in body
Aug 8, 2016 at 12:53 history answered birgire CC BY-SA 3.0