Append taxonomy terms as class names in markup?
Differ the output until you have a collection ready. $terms = get_the_terms( $post->ID, ‘teams’ ); // create a collection with your default item $classes = array(‘person’); foreach ($terms as $term) { // add items $classes[] = $term->slug; } // output all the classes together with a space to separate them. echo ‘<div class=”‘ . implode(‘ … Read more