From 3a5afef198df2ac66615994d3a9f68819b76bebe Mon Sep 17 00:00:00 2001 From: obenland Date: Thu, 27 Jun 2013 06:24:26 -0700 Subject: [PATCH] _s: Add custom taxonomy support for term descriptions in taxonomy archives. We don't even have to check for a context before printing the description, `term_description()` does all the heavy lifting for us. Props @jasondpx. Fixes #128. --- archive.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/archive.php b/archive.php index 8639e61d..618be0f3 100644 --- a/archive.php +++ b/archive.php @@ -66,20 +66,10 @@ get_header(); ?> ?> ' . $category_description . '' ); - endif; - - elseif ( is_tag() ) : - // show an optional tag description - $tag_description = tag_description(); - if ( ! empty( $tag_description ) ) : - echo apply_filters( 'tag_archive_meta', '
' . $tag_description . '
' ); - endif; - + // Show an optional term description. + $term_description = term_description(); + if ( ! empty( $term_description ) ) : + printf( '
%s
', $term_description ); endif; ?>