[wp-hackers] Tax Query Possible Bug

Baki Goxhaj banago at gmail.com
Mon Oct 28 21:22:12 UTC 2013

I'm running a tax query and I'm getting no results. From debugging I found
this rather interesting result:

> [request] => SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND 0 = 1 AND wp_posts.post_type ...
> Interestin Part => ... WHERE 1=1  AND 0 = 1 ...

Is this a normal behaviour?

PS: I use the same exact code somewhere else in the site and it works fine.
In this case I'm using this code inside a function in function.php.


Baki Goxhaj

More information about the wp-hackers mailing list