I have the following code:
<?php $terms = get_the_terms( $post->ID , 'people' );
if($terms) {
foreach( $terms as $term ) {
echo '<div class="authorbio">'.$term->description.'<br /></div>';
}
}
?>
I only have descriptions on certain custom tags. I don’t want to display the “authorbio” divs when the description is missing. How do I do it?