-
Notifications
You must be signed in to change notification settings - Fork 1
/
category.php
61 lines (51 loc) · 1.44 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* The template for displaying Category pages
*
* @link http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header();
?>
<div id="primary" class="wrap group full-width">
<div class="two-third">
<h1><?php printf( __( 'Category Archives: <span>%s</span>', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>
<?php
while ( have_posts() ) : the_post();
?>
<div class="entry-content">
<div class="thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<p class="post-meta">
Posted <?php the_date(); ?> in <?php print get_the_category_list( ", ", "", get_the_ID() ); ?> by <?php the_author_link() ?>.
</p>
</div>
<?php
endwhile;
?>
<div class="pagination">
<?php print paginate_links(); ?>
</div>
</div>
<?php
$category = get_queried_object();
if ( $category->term_id == 5508 ) {
print '<div class="aux-box" style="margin-top: 80px;">' . apply_filters( 'the_content', get_post_meta( 120, CMB_PREFIX . 'left_content', 1 ) ) . '</div>';
} else {
?>
<div class="third sidebar pad-top">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-blog') ) : ?><!-- no sidebar --><?php endif; ?>
</div>
<?php
}
?>
</div>
<?php
get_footer();
?>