Twenty Eleven: Show tag descriptions on tag archive pages if they exist; Props zeo; Fixes #17438
git-svn-id: https://develop.svn.wordpress.org/trunk@18058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
064786d47c
commit
dcee686373
@ -17,7 +17,11 @@ get_header(); ?>
|
|||||||
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
||||||
?></h1>
|
?></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>
|
</header>
|
||||||
|
|
||||||
<?php twentyeleven_content_nav( 'nav-above' ); ?>
|
<?php twentyeleven_content_nav( 'nav-above' ); ?>
|
||||||
|
@ -18,6 +18,12 @@ get_header(); ?>
|
|||||||
<h1 class="page-title"><?php
|
<h1 class="page-title"><?php
|
||||||
printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
||||||
?></h1>
|
?></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>
|
</header>
|
||||||
|
|
||||||
<?php rewind_posts(); ?>
|
<?php rewind_posts(); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user