Nested Tax Queries
-
Hi,
I’m trying to invoke Relevanssi on a custom WP Query using the relevanssi_do_query function, and it works beautifully, until I pass through a complex nested Tax Query as well, and I get the error Undefined index: field in relevanssi\lib\search.php on line 86.
I’m fairly certain my Query Args are correct as the it does work without Relevanssi. An example of the args might be:
Array
(
[post_type] => product
[posts_per_page] => 18
[paged] => 1
[page] => 1
[tax_query] => Array
(
[relation] => AND
[0] => Array
(
[relation] => OR
[0] => Array
(
[taxonomy] => product_styles
[field] => slug
[terms] => flock
)[1] => Array
(
[taxonomy] => product_styles
[field] => slug
[terms] => floral
))
[1] => Array
(
[relation] => OR
[0] => Array
(
[taxonomy] => product_colours
[field] => slug
[terms] => Blue
)[1] => Array
(
[taxonomy] => product_colours
[field] => slug
[terms] => Duckegg
)
)
)[s] => my search term
)Is this intended, not supported, or am I just doing something stupid?
Also, I appreciate this is not necessarily intended use, but any assistance would be gratefully received.
Chris
- The topic ‘Nested Tax Queries’ is closed to new replies.