How to get the first term for the current taxonomy?
You can use get_queried_object to get the term name. <?php if( is_tax() ) { global $wp_query; $term = $wp_query->get_queried_object(); $title= $term->name; } ?> To display: <?php echo $title; ?> If your on a taxonomy archive page you can use: <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); ?> Then to display … Read more