Close #645 - Fix for search with no result
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php get_template_part('templates/page', 'header'); ?>
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php get_template_part('templates/content', get_post_format()); ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$format = have_posts() ? get_post_format() : false;
|
||||
get_template_part('templates/content', $format);
|
||||
?>
|
||||
Reference in New Issue
Block a user