author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 5 | 5e2f62d02dcd |
child 10 | 372f2766ea20 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* The template for displaying Category pages |
|
4 |
* |
|
5 | 5 |
* @link https://codex.wordpress.org/Template_Hierarchy |
0 | 6 |
* |
7 |
* @package WordPress |
|
8 |
* @subpackage Twenty_Thirteen |
|
9 |
* @since Twenty Thirteen 1.0 |
|
10 |
*/ |
|
11 |
||
12 |
get_header(); ?> |
|
13 |
||
14 |
<div id="primary" class="content-area"> |
|
15 |
<div id="content" class="site-content" role="main"> |
|
16 |
||
17 |
<?php if ( have_posts() ) : ?> |
|
18 |
<header class="archive-header"> |
|
19 |
<h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) ); ?></h1> |
|
20 |
||
21 |
<?php if ( category_description() ) : // Show an optional category description ?> |
|
22 |
<div class="archive-meta"><?php echo category_description(); ?></div> |
|
23 |
<?php endif; ?> |
|
24 |
</header><!-- .archive-header --> |
|
25 |
||
26 |
<?php /* The loop */ ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
27 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
28 |
while ( have_posts() ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
29 |
the_post(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
30 |
?> |
0 | 31 |
<?php get_template_part( 'content', get_post_format() ); ?> |
32 |
<?php endwhile; ?> |
|
33 |
||
34 |
<?php twentythirteen_paging_nav(); ?> |
|
35 |
||
36 |
<?php else : ?> |
|
37 |
<?php get_template_part( 'content', 'none' ); ?> |
|
38 |
<?php endif; ?> |
|
39 |
||
40 |
</div><!-- #content --> |
|
41 |
</div><!-- #primary --> |
|
42 |
||
43 |
<?php get_sidebar(); ?> |
|
5 | 44 |
<?php get_footer(); ?> |