The 0=1 isn’t coming from the Meta query, It’ll be coming from the Taxonomy query.
When WordPress determines (for whatever reason) that a Taxonomy query will have 0 results, it uses 0=1 to cause no posts to be selected.
Take a look at lines 12~26 and check to see if the terms you’re requesting should actually have some posts or not.
Thread Starter
5AMsan
(@5amsan)
Thank you for this Dion.
I’m sure it will return something since it returns results with another meta query (ie. if I use a 5 digit number for “lot_zip”).
The 0=1 shows up when the hilighted condition is used.
Thread Starter
5AMsan
(@5amsan)
Well, I’m still stuck on this. Any idea to bypass this issue ?
Could I try to fix the query with some filter ?