I would love some help on how I can best display the custom taxonomy of a post as text only (and not as link within an tag).
I have a small template file that is called by a few other pages, and the job of that template file is to render a citation for an article - here's the complete code:
<div class="ehp_citation_block"> <h6><strong><?php the_category(' | '); ?></strong></h6> <span class="alignright"><?php the_terms( get_the_ID(), 'ehp_volumes' ); ?></span> <?php the_field('ehp_citation'); ?> </div>
This portion of that php file:
<?php the_terms( get_the_ID(), 'ehp_volumes' ); ?>
Does its job in displaying the taxonomy - but it is wrapped in a hyperlink. Is there an attribute that will just return the text of taxonomy? Do I need to use a variable instead?