3
* The template for displaying Category pages
5
* Used to display archive-type pages for posts in a category.
7
* @link http://codex.wordpress.org/Template_Hierarchy
10
* @subpackage Twenty_Twelve
11
* @since Twenty Twelve 1.0
16
<section id="primary" class="site-content">
17
<div id="content" role="main">
19
<?php if ( have_posts() ) : ?>
20
<header class="archive-header">
21
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
23
<?php if ( category_description() ) : // Show an optional category description ?>
24
<div class="archive-meta"><?php echo category_description(); ?></div>
26
</header><!-- .archive-header -->
30
while ( have_posts() ) : the_post();
32
/* Include the post format-specific template for the content. If you want to
33
* this in a child theme then include a file called called content-___.php
34
* (where ___ is the post format) and that will be used instead.
36
get_template_part( 'content', get_post_format() );
40
twentytwelve_content_nav( 'nav-below' );
44
<?php get_template_part( 'content', 'none' ); ?>
47
</div><!-- #content -->
48
</section><!-- #primary -->
50
<?php get_sidebar(); ?>
51
<?php get_footer(); ?>
b'\\ No newline at end of file'