-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
47 lines (37 loc) · 1.36 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
<?php
/**
* The template for displaying Category pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
get_header('small'); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<header class="archive-header">
<h1 class="archive-title"><?php printf(single_cat_title('', false)); ?></h1>
<?php if (category_description()) : // Show an optional category description
?>
<div class="archive-meta"><?php echo category_description(); ?></div>
<?php endif; ?>
</header><!-- .archive-header -->
<?php if (have_posts()) : ?>
<?php /* The loop */ ?>
<?php while (have_posts()) : the_post(); ?>
<div class="postcontainer" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="commenthead">
<?php the_time('j. F Y'); ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?>
</p>
<div class="postcontent clearfix">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>