Search pre_get_posts filter which can handle multiple post types and categories?

You can set tax query in pre_get_posts hook as well:

$query->set('tax_query', array(__standart parameters__));

Leave a Comment