3 * The template for displaying Tag pages
5 * Used to display archive-type pages for posts in a tag.
7 * @link http://codex.wordpress.org/Template_Hierarchy
10 * @subpackage Twenty_Fourteen
11 * @since Twenty Fourteen 1.0
16 <section id="primary" class="content-area">
17 <div id="content" class="site-content" role="main">
19 <?php if ( have_posts() ) : ?>
21 <header class="archive-header">
22 <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentyfourteen' ), single_tag_title( '', false ) ); ?></h1>
25 // Show an optional term description.
26 $term_description = term_description();
27 if ( ! empty( $term_description ) ) :
28 printf( '<div class="taxonomy-description">%s</div>', $term_description );
31 </header><!-- .archive-header -->
35 while ( have_posts() ) : the_post();
38 * Include the post format-specific template for the content. If you want to
39 * use this in a child theme, then include a file called called content-___.php
40 * (where ___ is the post format) and that will be used instead.
42 get_template_part( 'content', get_post_format() );
45 // Previous/next page navigation.
46 twentyfourteen_paging_nav();
49 // If no content, include the "No posts found" template.
50 get_template_part( 'content', 'none' );
54 </div><!-- #content -->
55 </section><!-- #primary -->
58 get_sidebar( 'content' );