So the good news is that my sad little attempt at a conditional statement doesn't crash my site. The bad news is that it also doesn't work.
I've got two custom taxonomies, "status" and "current league". Every post has a status, but only some have current leagues. I am trying to display these two taxonomies with the post meta, but I don't want "League:" to show if there is no current league. The simple part of this (the "status" part) works fine, but the next part does nothing. Could someone kindly suggest a modification that might make it work?
<?php echo get_the_term_list( $post->ID, 'status', 'Status: ', ', ', '' ); ?><br>
<?php if (has_term( 'current-league' ) ){
echo get_the_term_list( $post->ID, 'current-league', 'League: ', ', ', '' );
} ?>
Many thanks...