Skip to content

Instantly share code, notes, and snippets.

@Kevinlearynet
Created November 30, 2012 18:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kevinlearynet/4177530 to your computer and use it in GitHub Desktop.
Save Kevinlearynet/4177530 to your computer and use it in GitHub Desktop.
Display a custom taxonomy term's description within an archive theme template
// Show an optional taxonomy term description
if ( is_tax() ) {
$term_description = term_description();
if ( ! empty( $term_description ) )
echo apply_filters( 'taxonomy_archive_meta', '<div class="taxonomy-description">' . $term_description . '</div>' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment