2013-02-18 18:08:56 -05:00
|
|
|
<?php
|
|
|
|
/**
|
2013-09-20 15:34:10 -04:00
|
|
|
* The template for displaying Category pages
|
2013-02-18 18:08:56 -05:00
|
|
|
*
|
2019-01-09 00:09:51 -05:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
2013-02-18 18:08:56 -05:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Thirteen
|
|
|
|
* @since Twenty Thirteen 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
get_header(); ?>
|
|
|
|
|
|
|
|
<div id="primary" class="content-area">
|
|
|
|
<div id="content" class="site-content" role="main">
|
|
|
|
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
<header class="archive-header">
|
2019-07-08 21:10:00 -04:00
|
|
|
<h1 class="archive-title">
|
|
|
|
<?php
|
2019-09-02 20:41:05 -04:00
|
|
|
/* translators: %s: Category title. */
|
2019-07-08 21:10:00 -04:00
|
|
|
printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) );
|
|
|
|
?>
|
|
|
|
</h1>
|
2013-02-18 18:08:56 -05:00
|
|
|
|
2020-01-28 19:45:18 -05:00
|
|
|
<?php if ( category_description() ) : // Show an optional category description. ?>
|
2013-02-18 18:08:56 -05:00
|
|
|
<div class="archive-meta"><?php echo category_description(); ?></div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</header><!-- .archive-header -->
|
|
|
|
|
2017-11-30 18:11:00 -05:00
|
|
|
<?php
|
2020-01-28 19:45:18 -05:00
|
|
|
// Start the loop.
|
2017-11-30 18:11:00 -05:00
|
|
|
while ( have_posts() ) :
|
|
|
|
the_post();
|
2018-08-16 21:51:36 -04:00
|
|
|
?>
|
2013-02-18 18:08:56 -05:00
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php twentythirteen_paging_nav(); ?>
|
|
|
|
|
|
|
|
<?php else : ?>
|
|
|
|
<?php get_template_part( 'content', 'none' ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div><!-- #content -->
|
|
|
|
</div><!-- #primary -->
|
|
|
|
|
|
|
|
<?php get_sidebar(); ?>
|
2015-04-12 17:29:32 -04:00
|
|
|
<?php get_footer(); ?>
|