-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
30 lines (24 loc) · 697 Bytes
/
search.php
File metadata and controls
30 lines (24 loc) · 697 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
<?php get_header();
require get_theme_file_path('/includes/searchLogic.php');
$wp_query = searchResults();
get_template_part( 'content/archive-header' );
do_action( 'after_archive_header' ); ?>
<div id="loop-container" class="loop-container">
<div class="filters-container">
<?php get_search_form(); ?>
</div>
<?php
if ( $wp_query->have_posts() ) :
while ($wp_query->have_posts() ) :
$wp_query->the_post();
ct_period_get_content_template();
endwhile;
else :?>
<div class="filters-container">
<p>No results for this search.</p>
</div>
<?php endif;
?>
</div><?php
ct_period_pagination();
get_footer();