Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.