Gets current WP custom taxonomy term
// get the current project category $term_list = wp_get_post_terms($post->ID, 'project-category', array("fields" => "all")); $proj_cat = $term_list[0]->name;