<div class="row masonry blog-content blog-masonry"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); /** * Get blog posts by blog layout. */ get_template_part( 'loop/content-post', 'masonry' ); endwhile; else : /** * Display no posts message if none are found. */ get_template_part( 'loop/content','none' ); endif; ?> </div> <!-- end row --> <?php get_template_part( 'inc/content-post', 'load-more' );