-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
34 lines (18 loc) · 837 Bytes
/
search.php
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
<?php get_header(); ?>
<main id="main" class="site-main" role="main">
<h2 class="section-title"><?php esc_html_e('Search Results for','foodica');?> <strong>"<?php the_search_query(); ?>"</strong></h2>
<section class="content-area full-layout">
<?php if ( have_posts() ) : ?>
<section id="recent-posts" class="recent-posts">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
</section><!-- .recent-posts -->
<?php get_template_part( 'pagination' ); ?>
<?php else: ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</section><!-- .content-area -->
</main><!-- .site-main -->
<?php
get_footer();