-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathcategory.php
21 lines (21 loc) · 1005 Bytes
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
get_header(); ?>
<div id="content" class="small-12 large-8 cell" role="main">
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<nav aria-label="You are here:" role="navigation"><ul class="breadcrumbs">','</ul></nav>'); } ?>
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h4 class="archive-title"><?php printf( __( 'Category Archives: %s', 'wp-forge' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h4>
<?php if ( category_description() ) : // Show an optional category description ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header><!-- .archive-header -->
<?php while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
wpforge_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>