3 * The template for displaying Category pages
5 * @link http://codex.wordpress.org/Template_Hierarchy
8 * @subpackage Twenty_Fourteen
9 * @since Twenty Fourteen 1.0
14 <section id="primary" class="content-area">
15 <div id="content" class="site-content" role="main">
17 <?php if ( have_posts() ) : ?>
19 <header class="archive-header">
20 <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>
23 // Show an optional term description.
24 $term_description = term_description();
25 if ( ! empty( $term_description ) ) :
26 printf( '<div class="taxonomy-description">%s</div>', $term_description );
29 </header><!-- .archive-header -->
33 while ( have_posts() ) : the_post();
36 * Include the post format-specific template for the content. If you want to
37 * use this in a child theme, then include a file called called content-___.php
38 * (where ___ is the post format) and that will be used instead.
40 get_template_part( 'content', get_post_format() );
43 // Previous/next page navigation.
44 twentyfourteen_paging_nav();
47 // If no content, include the "No posts found" template.
48 get_template_part( 'content', 'none' );
52 </div><!-- #content -->
53 </section><!-- #primary -->
56 get_sidebar( 'content' );