-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
43 lines (31 loc) · 822 Bytes
/
search.php
File metadata and controls
43 lines (31 loc) · 822 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
36
37
38
39
40
41
42
43
<?php
/**
* The template for displaying search result page.
*
* Learn more: https://codex.wordpress.org/Template_Hierarchy
*
* @package Forest
*/
get_header(); ?>
<div class="blog-cover-wrap">
<div class="inside blog-cover">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'forest' ), get_search_query() ); ?></h1>
</div>
</div>
<div class="inside content-wrapper">
<div id="primary" class="site-content hfeed">
<?php if ( have_posts() ) : ?>
<?php
while ( have_posts() ) :
the_post();
?>
<?php get_template_part( 'content' ); ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php stag_paging_nav(); ?>
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>