For sure it's very simple, but I can not figure out how to do this.
I need to query all posts that has a specific taxonomy set. Like this:
$query03 = array(
'numberposts' => 5,
'post_type' => array(
'video'
),
'tax_query' => array(
array(
'taxonomy' => 'product',
'field' => 'slug',
'terms' => **all_the_terms_in_taxonomy**
)
)
);
I want set the terms
field a wildcard. I know I could populate terms
fild with an array, but the list is very very long and I'm worried about weight of the query.