-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
31 lines (26 loc) · 748 Bytes
/
search.php
File metadata and controls
31 lines (26 loc) · 748 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
<?php get_header(); ?>
<section class="section">
<div class="container">
<h1 class="title">
<?php
if (have_posts()) {
printf(__('Search results for: %s', 'stan'), get_search_query());
} else {
_e('Nothing found', 'stan');
}
?>
</h1>
<?php if (have_posts()) { ?>
<div class="clearfix grid">
<?php while (have_posts()) { the_post(); ?>
<?php post(true); ?>
<?php } ?>
<?php
global $wp_query;
pagination($wp_query);
?>
</div>
<?php } ?>
</div>
</section>
<?php get_footer();