cara mengambil nama grup dalam jenis pos kustom di wordpress

$terms = get_the_terms($post->ID, 'Enter_your_taxonomy_here' );
if ($terms && ! is_wp_error($terms)) :
    $tslugs_arr = array();
    foreach ($terms as $term) {
        $tslugs_arr[] = '<a href="'. get_term_link( $term ).'">'.$term->slug.'</a>';
    }
    $terms_slug_str = join( " ", $tslugs_arr);
endif;
echo $terms_slug_str;
Loreto