-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
21 lines (21 loc) · 991 Bytes
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php get_header(); ?>
<section class="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<header class="post-header">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" ><?php the_title(); ?></a></h2>
<p class="post-time"><small>Posted on <time datetime="<?php the_time('c'); ?>"><?php the_time('F j, Y \a\t g:ia'); ?></time>.</small></p>
</header>
<section class="entry">
<?php the_excerpt(); ?>
</section>
<footer class="post-footer">
<p class="post-metadata"><small>Tagged: <?php the_category(', '); ?></small></p>
</footer>
</article>
<?php endwhile; else: ?>
<p>Sorry, nothing found!</p>
<?php endif; ?>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>