Here is an issue, I have a site that has sort of complex search. I have set several arguments: s
, meta_query
, tax_query
and post_type
Obviously these are all linked with AND
relationships (except meta_query
and tax_query
that can be set with OR
relationship, but I need to get posts that have entered phrase at either title or content or some of meta values, or some of taxonomies.
Any way of doing so?
You should use relation parameter.
UPDATE:
Example from a page linked above: