-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
31 lines (28 loc) · 1.23 KB
/
search.php
File metadata and controls
31 lines (28 loc) · 1.23 KB
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
<?php get_header();
$page_ID = get_queried_object_ID();
$get_search = get_search_query(); ?>
<div class="archive-search">
<div class="block-search-results">
<div class="block-setting-padding" style="--block-padding-top: 80px; --block-padding-bottom: 80px;">
<div class="container-lg">
<div class="wysiwyg-content padding-md-bot">
<h1 class="h3">Search</h1>
<?php if (!empty($get_search)): ?>
<p>Showing results for: <strong><?php echo $get_search; ?></strong></p>
<?php endif; ?>
</div>
<?php if (have_posts()): ?>
<div class="listing-posts grid-col-3">
<?php while (have_posts()): the_post(); $post_ID = get_the_ID();
include(get_template_directory().'/parts/entry-post.php'); ?>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<?php get_pagination(); ?>
<?php else: ?>
<p>No results found.</p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php get_footer();