Display the taxonomy term slug in post of which that post belongs to
Copy the below code and paste it inside the post loop where you want to display the taxonomy slug:
ID, 'project_categories' ); // Change "project_categories" to your desired taxonomy if ( !empty( $terms ) ){ // get the first term $term = array_shift( $terms ); echo $term->slug; } ?>