Taxonomy term descriptions in below post content
-
Folks,
I am trying to show a term description at the bottom of a post. The term is part of a custom taxonomy.
For instance, a post is assigned to the term Apples. In single.php, I’m listing the_content, to be followed by the description of the term this specific post is assigned to.
I’m using
<?php echo term_description( '', get_query_var( 'taxonomy' ) ); ?>
for taxonomy.php – but this obviously won’t work for single.php.
What snippet could I use to:
Display the term_description for term to which this post is assigned? I know how to get the term list with
<?php echo get_the_term_list( $post->ID, 'taxonomy-name', '', ', ', '' ); ?>
but I’m drawing a blank for the description.
Thanks in advance for your help
John
- The topic ‘Taxonomy term descriptions in below post content’ is closed to new replies.