How to display class name in this shortcode post query
OK, so you have to modify some part of your code like so: $list=” “; while ( have_posts() ) { the_post(); $terms = get_the_terms( $post->ID, ‘port_tags’ ); $terms_string = ”; if ( $terms ) { foreach ( $terms as $term ) $terms_string .= $term->slug . ‘ ‘; } $list .= ‘<li class=”mix all ‘. $terms_string … Read more