-
Notifications
You must be signed in to change notification settings - Fork 40
/
category.php
executable file
·29 lines (22 loc) · 972 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
<?php get_header(); ?>
<main id="content" class="clearfix" role="main">
<h1 class="page-title"><?php printf( __( 'Category Archives: %s','wpflex'), '<span>' . single_cat_title( '', false ) . '</span>');?></h1>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post()?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark tag" title="<?php the_title(); ?> blog post entry"><?php the_title(); ?></a></h1>
<?php get_template_part( 'inc/meta' ); ?>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div>
<?php get_template_part( 'inc/entry-footer' ); ?>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'inc/error-msg' ); ?>
<?php endif; ?>
<?php get_template_part( 'inc/pagination-posts' ); ?>
</main>
<?php get_template_part( 'inc/widget-sidebar' ); ?>
<?php get_footer(); ?>