]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/twentythirteen/tag.php
WordPress 3.9.1
[autoinstalls/wordpress.git] / wp-content / themes / twentythirteen / tag.php
1 <?php
2 /**
3  * The template for displaying Tag pages
4  *
5  * Used to display archive-type pages for posts in a tag.
6  *
7  * @link http://codex.wordpress.org/Template_Hierarchy
8  *
9  * @package WordPress
10  * @subpackage Twenty_Thirteen
11  * @since Twenty Thirteen 1.0
12  */
13
14 get_header(); ?>
15
16         <div id="primary" class="content-area">
17                 <div id="content" class="site-content" role="main">
18
19                 <?php if ( have_posts() ) : ?>
20                         <header class="archive-header">
21                                 <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentythirteen' ), single_tag_title( '', false ) ); ?></h1>
22
23                                 <?php if ( tag_description() ) : // Show an optional tag description ?>
24                                 <div class="archive-meta"><?php echo tag_description(); ?></div>
25                                 <?php endif; ?>
26                         </header><!-- .archive-header -->
27
28                         <?php /* The loop */ ?>
29                         <?php while ( have_posts() ) : the_post(); ?>
30                                 <?php get_template_part( 'content', get_post_format() ); ?>
31                         <?php endwhile; ?>
32
33                         <?php twentythirteen_paging_nav(); ?>
34
35                 <?php else : ?>
36                         <?php get_template_part( 'content', 'none' ); ?>
37                 <?php endif; ?>
38
39                 </div><!-- #content -->
40         </div><!-- #primary -->
41
42 <?php get_sidebar(); ?>
43 <?php get_footer(); ?>