Twenty Eleven: Show tag descriptions on tag archive pages if they exist; Props zeo; Fixes #17438

git-svn-id: http://svn.automattic.com/wordpress/trunk@18058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
iandstewart 2011-05-26 19:10:30 +00:00
parent 7692708e25
commit 7fe55a3443
2 changed files with 13 additions and 3 deletions

View File

@ -17,7 +17,11 @@ get_header(); ?>
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?></h1>
<?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
?>
</header>
<?php twentyeleven_content_nav( 'nav-above' ); ?>

View File

@ -18,6 +18,12 @@ get_header(); ?>
<h1 class="page-title"><?php
printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
?></h1>
<?php
$tag_description = tag_description();
if ( ! empty( $tag_description ) )
echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
?>
</header>
<?php rewind_posts(); ?>