-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.php
executable file
·53 lines (40 loc) · 966 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
49
50
51
52
53
<?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 ( is_search() ) {
?><h1 class="post-title">Search Results for <span>'<?php print $_REQUEST["s"]; ?>'</span></h1><?php
}
?>
<div class="post-list">
<?php
if ( have_posts() ) :
// Start the Loop.
while ( have_posts() ) : the_post();
?>
<div class="entry<?php print ( is_sticky() ? ' sticky' : '' ); ?>">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
</div>
<?php
endwhile;
else :
print "<p>There are currently no posts to list here.</p>";
endif;
?>
</div>
<?php paginate(); ?>
</div><!-- #primary -->
<?php
get_footer();
?>