Make WordPress Core


Ignore:
Timestamp:
05/26/2011 07:10:30 PM (13 years ago)
Author:
iandstewart
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/tag.php

    r17959 r18058  
    1919                        printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' );
    2020                    ?></h1>
     21
     22                    <?php
     23                        $tag_description = tag_description();
     24                        if ( ! empty( $tag_description ) )
     25                            echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
     26                    ?>
    2127                </header>
    2228
Note: See TracChangeset for help on using the changeset viewer.