-
Notifications
You must be signed in to change notification settings - Fork 1
/
category.php
39 lines (31 loc) · 926 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
33
34
35
36
37
38
39
<?php get_header(); ?>
<!-- PAGE START -->
<div id="page" class="clearfix">
<div id="container">
<div id="content" role="main">
<?php stf_breadcrumbs(); ?>
<?php stf_archive_header(); ?>
<span class="sub-title"><?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo $category_description;
?></span>
<?php do_action('before_content'); ?>
<?php if ( have_posts() ) :
$post_index = 1;
while ( have_posts() ) : the_post();
$posts_displayed[] = $post->ID;
get_template_part( 'content', get_post_format() );
$post_index = $post_index + 1;
endwhile;
stf_pagination();
else : ?>
<?php get_template_part( 'content', '404' ); ?>
<?php endif; ?>
<?php do_action('after_content'); ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div>
<!--/ PAGE END -->
<?php get_footer(); ?>