-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsearch.php
More file actions
26 lines (24 loc) · 737 Bytes
/
search.php
File metadata and controls
26 lines (24 loc) · 737 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
<?php
/**
* The template for displaying search results pages
*
* Used to display pages for posts in a search result.
*
* @package Bigfa
* @subpackage Hera
* @since Hera 0.0.4
*/
get_header(); ?>
<?php get_template_part('template-parts/search-bar'); ?>
<div class="post--list">
<div class="search--title"><?php echo __('Search results for: ', 'Hera') . get_query_var('s'); ?></div>
<?php if (have_posts()) : ?>
<div class="hBlock--list">
<?php while (have_posts()) : the_post();
get_template_part('template-parts/content', get_post_format());
endwhile; ?>
</div>
<?php get_template_part('template-parts/pagination');
endif; ?>
</div>
<?php get_footer(); ?>