-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
32 lines (28 loc) · 908 Bytes
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Description: Default Index template to display loop of blog posts
*
* @package WordPress
* @subpackage iShouvik WP
*/
get_header(); ?>
<div class="row">
<div id="primary" class="col-md-8 site-main-content">
<?php if (have_posts()) : ?>
<div class="card mb-3">
<header class="card-header">
<h1 class="archive-title"><?php printf( __( 'Category: %s', 'ishouvikwp' ), single_cat_title( '', false ) ); ?></h1>
<?php if ( category_description() ) : // Show an optional category description ?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header>
</div>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile;?>
<?php ishouvik_pagination(); ?>
<?php endif; ?>
</div>
<?php get_sidebar('blog'); ?>
</div>
<?php get_footer(); ?>