-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
35 lines (20 loc) · 672 Bytes
/
search.php
File metadata and controls
35 lines (20 loc) · 672 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
<?php get_header();
pageBanner(array(
'title' => 'Search Results',
'subtitle' => 'You searched for “' . esc_html(get_search_query(false)) . '”',
)); ?>
<div class="container container--narrow page-section">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
get_template_part('template-parts/content', get_post_type());
}
echo paginate_links();
} else {
echo '<h2 class="headline headline--small">No Results found</h2>';
}
get_search_form();
?>
</div>
<?php get_footer(); ?>