-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
executable file
·53 lines (43 loc) · 1.19 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
<?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 class="large-title">
<h1><?php printf( single_cat_title( '', false ) ); ?></h1>
</div>
<div class="main-content pad" role="main">
<div class="blog-columns">
<div class="blog-listing">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<div class="entry">
<?php the_post_thumbnail( array( 768, 480 ) ); ?>
<h3><a href="<?php the_permalink(); ?>"><?php print get_the_title(); ?></a></h3>
<p><?php the_excerpt(); ?></p>
<a href="<?php the_permalink() ?>" class="btn arrow">Read More</a>
</div>
<?php
endwhile;
endif;
?>
</div>
<div class="aside">
<h4>Quick Links</h4>
<?php wp_nav_menu( array( 'theme_location' => 'blog-menu', 'menu_class' => 'nav-menu' ) ); ?>
<?php print apply_filters( 'the_content', do_shortcode('[snippet slug="blog-sidebar-bottom" /]')) ?>
</div>
</div><!-- #content -->
</div><!-- #content -->
<?php pagination(); ?>
<?php
get_footer();
?>