$terms = get_the_terms($post -> 82, '$taxonomy'); foreach($terms as $term){ $term_slug = $term -> slug; }