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 get_template_part('templates/page', 'header'); ?>
|
||||||
<?php if (have_posts()) : ?>
|
<?php
|
||||||
<?php get_template_part('templates/content', get_post_format()); ?>
|
$format = have_posts() ? get_post_format() : false;
|
||||||
<?php endif; ?>
|
get_template_part('templates/content', $format);
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user