| 1 | Index: wp-content/themes/twentytwelve/archive.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-content/themes/twentytwelve/archive.php (revision 21271) |
|---|
| 4 | +++ wp-content/themes/twentytwelve/archive.php (working copy) |
|---|
| 5 | @@ -26,23 +26,29 @@ |
|---|
| 6 | } elseif ( is_year() ) { |
|---|
| 7 | printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); |
|---|
| 8 | } elseif ( is_tag() ) { |
|---|
| 9 | - printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); |
|---|
| 10 | - // Show an optional tag description |
|---|
| 11 | - $tag_description = tag_description(); |
|---|
| 12 | - if ( $tag_description ) |
|---|
| 13 | - echo '<div class="tag-archive-meta">' . $tag_description . '</div>'; |
|---|
| 14 | + printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); |
|---|
| 15 | } elseif ( is_category() ) { |
|---|
| 16 | printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); |
|---|
| 17 | - // Show an optional category description |
|---|
| 18 | - $category_description = category_description(); |
|---|
| 19 | - if ( $category_description ) |
|---|
| 20 | - echo '<div class="category-archive-meta">' . $category_description . '</div>'; |
|---|
| 21 | } else { |
|---|
| 22 | _e( 'Blog Archives', 'twentytwelve' ); |
|---|
| 23 | } |
|---|
| 24 | ?></h1> |
|---|
| 25 | |
|---|
| 26 | - <?php |
|---|
| 27 | + <?php |
|---|
| 28 | + if ( is_tag() ) { |
|---|
| 29 | + // Show an optional tag description |
|---|
| 30 | + $tag_description = tag_description(); |
|---|
| 31 | + if ( $tag_description ) |
|---|
| 32 | + echo '<div class="tag-archive-meta">' . $tag_description . '</div>'; |
|---|
| 33 | + } |
|---|
| 34 | + |
|---|
| 35 | + if ( is_category() ) { |
|---|
| 36 | + // Show an optional category description |
|---|
| 37 | + $category_description = category_description(); |
|---|
| 38 | + if ( $category_description ) |
|---|
| 39 | + echo '<div class="category-archive-meta">' . $category_description . '</div>'; |
|---|
| 40 | + } |
|---|
| 41 | + |
|---|
| 42 | /* Start the Loop */ |
|---|
| 43 | while ( have_posts() ) : the_post(); |
|---|
| 44 | |
|---|