get current taxonomy name in wordpress code example
Example 1: wordpress get current taxonomy
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name; // will show the name
echo $term->slug; // will show the slug
Example 2: How do I get current taxonomy "term id" on wordpress?
$obj = get_queried_object();
echo $obj->term_id;