forked from zoephilipps/scratch-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
executable file
·43 lines (29 loc) · 825 Bytes
/
search.php
File metadata and controls
executable file
·43 lines (29 loc) · 825 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php get_header(); ?>
<main itemscope itemtype="http://schema.org/SearchResultsPage">
<p class="center">
<strong>Search results for:</strong>
<?php echo esc_attr(get_search_query()); ?>
</p>
<section class="wrap hpad clearfix">
<?php if (have_posts()): ?>
<?php while (have_posts()): the_post(); ?>
<article id="post-<?php the_ID(); ?>"
<?php post_class(); ?>>
<header>
<h2>
<a href="<?php the_permalink(); ?>"
title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a>
</h2>
</header>
<div itemprop="description">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; else: ?>
<p>No posts here.</p>
<?php endif; ?>
</section>
</main>
<?php get_footer(); ?>