How can I list all slugs categories? September 19, 2022 by Tarik Billa you can try below code $term = get_term( get_the_ID(), 'portfolio_category'); $slug = $term->slug; echo $slug;