facetwp issues
<?php
/**
* The default blog / index template.
*/
get_header();
get_template_part('parts/index/featured-post');
if ( have_posts() ) :
get_template_part('parts/index/blog-grid');
else :
echo '<h2>Sorry, no posts have been found</h2>';
endif;
get_footer(); ?>
// Template part used on index.php
<section class="container blog-grid">
<div class="row row--justify-content-start facetwp-template">
<?php while ( have_posts() ) : the_post();
$img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'blog_grid'); ?>
<div class="col-4 sm-col-6 stretch">
<div class="blog-grid__img" style="background: url('<?php echo $img[0]; ?>') center/cover no-repeat"></div>
<?php the_category(); ?>
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<p><?php the_excerpt(); ?></p>
</div>
<?php endwhile; ?>
<div class="col-12 text-center facetwp-facet">
<a href="#" class="fwp-load-more">Load More...</a>
</div>
</div>
</section>