1
2
3
4
5
6
7
<?php
    $queried_object = get_queried_object();
    $term_slug = $queried_object->slug;
    
    echo $term_slug;
    
?>