-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
executable file
·48 lines (36 loc) · 957 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
40
41
42
43
44
45
46
47
48
<?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="content-wide" role="main">
<?php
if ( have_posts() ) : ?>
<h1>Category: <span><?php printf( single_cat_title( '', false ) ); ?></span></h1>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="description">%s</div>', $term_description );
endif;
while ( have_posts() ) : the_post();
?>
<hr />
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
<p class="quiet">Posted in <?php print get_the_category_list( ', ' ) ?>.</p>
<?php
endwhile;
endif;
?>
</div><!-- #content -->
<?php paginate(); ?>
<?php
get_footer();
?>