The question appeared on the filter from Misha
I made it to take information from 2 taxonomies of one post_type (category and brand). The problem is that it is now working clumsily, namely
1. If you specify only the brand, the records are not displayed, they say they are not.
2. When specifying 1 category and 2 or more brands, no entries are displayed. For some reason, he is looking for a coincidence so that in 1 record there were exactly these brands.
3. If you specify only categories, as in the case of a brand, it does not display anything.
The question is how to make the filter show the results in such situations as:
1. Empty items (display all post_type entries)
2. Only category is indicated (display all records related to this category)
3. Only brand is indicated (display all records related to this brand)
4. The category and brands are indicated (display all records related to this category and brands)
Etc.
Maybe something incomprehensibly painted, but as far as I could.
Help guys please.