I am trying to get the custom taxonomy term for a single custom post type and seem to be falling flat. I thought the most obvious answer was to use
single_term_title() but have tried just about every term related Wordpress function I could find in the codex but most of them seem to return arrays and I only want the term title for
single-match.php Here is what I thought would work.
<?php $matchtype = single_term_title("", false); ?> <h5><?php echo $matchtype->slug . ' match' ?></h5>