-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcategory.php
More file actions
27 lines (27 loc) · 762 Bytes
/
category.php
File metadata and controls
27 lines (27 loc) · 762 Bytes
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
<?php get_header();?>
<section class="multiple-posts">
<header>
<h1>What’s New in “<?php echo single_cat_title( '', false )?>”?</h1>
</header>
<?php
$counter = 1;
if(have_posts()):while(have_posts()):the_post();
?>
<article class="post <?php echo $counter%2?'odd':'even'?>">
<header>
<h2 class="title"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></h2>
<div class="meta"><small class="date">Posted on <?php the_date();?> by <?php the_author();?></small></div>
</header>
<div class="entry">
<?php the_excerpt();?>
</div>
</article>
<?php
$counter++;
endwhile;endif;
?>
</section>
<aside class="sidebar">
<?php get_sidebar(); ?>
</aside>
<?php get_footer();?>