Having formulated my $query for a custom taxonomy on a page template, how would I ask if a specific term has posts?
$args = array( 'post_type' => 'exhibitions', 'tax_query' => array( array( 'taxonomy' => 'exhibition', 'field' => 'slug' ), ) ); $query = new WP_Query($args);
Assuming I'm on the right track, a verbal description of the sort of conditional statements I'm looking for would be:
if the $query taxonomy term 'current' have posts, do something;
elseif the $query taxonomy term 'upcoming' have posts, do something else;