Created
November 30, 2012 18:20
-
-
Save Kevinlearynet/4177530 to your computer and use it in GitHub Desktop.
Display a custom taxonomy term's description within an archive theme template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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