Display name of taxonomy once
Not the best, but works well for me: (you can use this instead of what’s in the question) $postcount = 0; //global $wp_query; // Uncomment if necessary. // Group the posts by category. $groups = []; foreach ( $wp_query->posts as $i => $p ) { $terms = wp_get_post_terms( $p->ID, ‘show_category’ ); foreach ( $terms as … Read more