-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
33 lines (22 loc) · 891 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
<?php get_header(); ?>
<h1> <?php
printf( __( 'More posts about %s...' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?> </h1>
<p><em> <?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo '<div class="archive-meta">' . $category_description . '</div>'; ?> </em></p>
<center>***</center>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();?>
<article>
<h2><a href="<?php echo get_permalink(); ?>"><?php the_title($before = '“', $after = '”'); ?></a></h2> <p><?php the_excerpt(); ?></p>
</article>
<?php
endwhile;
else :
_e( 'Sorry, no posts matched your criteria.', 'textdomain' );
endif;
?>
<br>
<p style="text-align: right;"> <?php previous_posts_link( ); ?> | <?php next_posts_link( ); ?></p>
<?php get_footer(); ?>