It's more like a syntax error. <?php if ( have_posts() &! is_front_page() ) : ?> this line should be: <?php if ( have_posts() && !is_front_page() ) : ?>