Skip to content

Commit

Permalink
index: have_posts() also needs is_404() check [1]
Browse files Browse the repository at this point in the history
  • Loading branch information
lkraav committed Dec 21, 2017
1 parent 594858c commit ec64326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<?php endif; // End check for multi-post page. ?>

<?php if ( have_posts() ) : // Checks if any posts were found. ?>
<?php if ( have_posts() && ! is_404() ) : // Checks if any posts were found. ?>

<!-- hbd_before_loop -->
<?php do_action( 'hbd_before_loop' ); ?>
Expand Down

0 comments on commit ec64326

Please sign in to comment.