Taxonomy , Tags search
-
When I search for a word it works.
When I use taxonomy and tags it works fine.But when I search and refine with taxonomy and tags the result is wrong.
Instead of Taxonomy_term “AND” Tags_term, my results are Taxonomy_term “OR” tags_term
[query] => Array ( [s] => bois [tag] => appui-nuque [post_type] => artprim_item [artprim_categories] => afrique-du-sud ... )
I have bois in all articles (a custom type) with this TAG or this Taxonomy.
Which is surprising given the corresponding WP_Query:
[tax_query] => WP_Tax_Query Object ( [queries] => Array ( [0] => Array ( [taxonomy] => artprim_categories [terms] => Array ( [0] => afrique-du-sud ) [include_children] => 1 [field] => slug [operator] => IN ) [1] => Array ( [taxonomy] => post_tag [terms] => Array ( [0] => appui-nuque ) [include_children] => 1 [field] => slug [operator] => IN ) ) [relation] => AND )
Relation is AND.
Everything is find if I don’t use the search ability ( no more s=bois )
any hint??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Taxonomy , Tags search’ is closed to new replies.