[wp-testers] 3.1-beta2-16936 - tax_query in url

michael at mfields.org michael at mfields.org
Thu Dec 16 04:19:05 UTC 2010


Not sure if this is a bug or intended functionality. But I was testing a
few different multiple taxonomy queries the other day when I tried to pass
one through the url:

/?tax_query[0][taxonomy]=topics&tax_query[0][terms][]=dashboard&tax_query[0][terms][]=accessibility&tax_query[0][field]=slug&tax_query[0][operator]=IN&tax_query[1][taxonomy]=topics&tax_query[1][terms][]=media&tax_query[1][field]=slug&tax_query[1][operator]=NOT%20IN

WordPress returned my latest 10 posts instead of the one post that fits
the requirements.

Here's an expanded version of the query:

?tax_query[0][taxonomy]=topics
&tax_query[0][terms][]=dashboard
&tax_query[0][terms][]=accessibility
&tax_query[0][field]=slug
&tax_query[0][operator]=IN

&tax_query[1][taxonomy]=topics
&tax_query[1][terms][]=media
&tax_query[1][field]=slug
&tax_query[1][operator]=NOT%20IN

Next, I passed the query as a string through query_posts() on my home
page's loop and WordPress returned the expected results.

Is this a bug?



More information about the wp-testers mailing list