Make WordPress Themes

source: bridal-jewelry-store/2.8/search.php

Last change on this file was 242664, checked in by themedropbox, 14 months ago

New version of Bridal Jewelry Store - 1.2

File size: 713 bytes
Line 
1<?php
2
3/**
4 * The template for displaying search results pages
5 *
6 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
7 *
8 * @package bridal_jewelry_store
9 */
10
11get_header();
12?>
13
14<main id="primary" class="site-main">
15
16        <?php if ( have_posts() ) : ?>
17
18                <?php
19                /* Start the Loop */
20                while ( have_posts() ) : the_post();
21
22                get_template_part( 'template-parts/content', get_post_format() );
23
24                endwhile;
25
26                do_action( 'bridal_jewelry_store_posts_pagination' );
27
28        else :
29
30                get_template_part( 'template-parts/content', 'none' );
31
32        endif;
33        ?>
34
35</main>
36
37<?php
38if ( bridal_jewelry_store_is_sidebar_enabled() ) {
39        get_sidebar();
40}
41get_footer();
Note: See TracBrowser for help on using the repository browser.