-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
39 lines (35 loc) · 971 Bytes
/
search.php
File metadata and controls
39 lines (35 loc) · 971 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
<?php
/**
* The template for displaying Search Results pages.
*
* @since 1.0.0
*/
get_header(); ?>
<div class="container">
<div class="row">
<section id="primary" <?php bavotasan_primary_attr(); ?>>
<?php if ( have_posts() ) : ?>
<header id="archive-header">
<h1 class="page-title"><?php
global $wp_query;
$num = $wp_query->found_posts;
printf( '%1$s "%2$s"',
$num . __( ' search results for', 'arcade'),
get_search_query()
);
?></h1>
</header>
<?php
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
bavotasan_pagination();
else :
get_template_part( 'content', 'none' );
endif;
?>
</section><!-- #primary.c8 -->
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>