-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
34 lines (28 loc) · 1 KB
/
category.php
File metadata and controls
34 lines (28 loc) · 1 KB
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
33
34
<?php get_header();
$col= 'col-md-12';
if ( is_active_sidebar( 'sidebar' ) ) {
$col = 'col-md-8';
}
//get_template_part( 'sub', 'title' );
?>
<div class="row">
<div id="content" class="site-content <?php echo $col; ?>" role="main">
<?php if ( have_posts() ) { ?>
<header class="archive-header">
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', ZEETEXTDOMAIN ), 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><!-- .archive-header -->
<?php /* The loop */ ?>
<?php while ( have_posts() ) { the_post(); ?>
<?php get_template_part( 'post-templates/content', get_post_format() ); ?>
<?php } ?>
<?php echo zee_pagination(); ?>
<?php } else { ?>
<?php get_template_part( 'post-templates/content', 'none' ); ?>
<?php } ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>