示例#1
0
    }
    ?>
				<?php 
    bavotasan_search_pagination($product_search_query);
    wp_reset_query();
}
?>

			<?php 
if ('product' != $search_post_type) {
    global $wp_query;
    if (have_posts()) {
        ?>
					<header id="archive-header">
						<h1 class="entry-title page-header clearfix"><?php 
        bavotasan_search_title($wp_query);
        ?>
</h1>
					</header>
					<?php 
        while (have_posts()) {
            the_post();
            get_template_part('content', get_post_format());
        }
        bavotasan_search_pagination($wp_query);
    } else {
        get_template_part('content', 'none');
    }
}
?>
		</section><!-- #primary.c8 -->
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 
    bavotasan_search_title();
    ?>
</h1>
				</header>
				<?php 
    while (have_posts()) {
        the_post();
        get_template_part('content', get_post_format());
    }
    bavotasan_pagination();
} else {
    get_template_part('content', 'none');
}
?>
		</section><!-- #primary.c8 -->