forked from ejohann/fictional-university-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
28 lines (26 loc) · 775 Bytes
/
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
<?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-plus">No results match that search</h2>';
}
get_search_form();
?>
</div>
<?php get_footer(); ?>