-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
37 lines (24 loc) · 1.06 KB
/
search.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
<?php get_header(); ?>
<h2>Search Results</h2>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<p class="meta"><?php the_time('l, F jS, Y') ?></p>
<p class="meta"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments', '1 Comment →', '% Comments →'); ?></p>
</div>
<?php endwhile; ?>
<p><?php next_post_link('« Older Entries') ?> <?php previous_post_link('Newer Entries »') ?></p>
<?php else : ?>
<div class="post">
<p>No posts found. Try a different search?</p>
</div>
<?php endif; ?>
</div><!-- /content-inner -->
<div id="sidebar">
<?php get_sidebar(); ?>
</div><!-- /sidebar -->
</div><!-- /content -->
</div><!-- /wrap-inner -->
</div><!-- /wrap -->
<?php get_footer(); ?>