- clearfix
, Bootstrap clearfix
, . row
s.
JSFiddle:

, JSFiddle http://lorempixel.com/ , - .
, $count
loop-search.php
clearfix
:
<?php
$count = 0;
if (have_posts()) :
while (have_posts()) : the_post();
$count++;
?>
<div id="post-<?php the_ID(); ?>" class="post-list_h ajax-post-wrapper block col-xs-12 col-sm-6 col-md-6" >
<?php get_template_part('post-template/list-search-template'); ?>
</div>
<?php if ($count%2 === 0) { ?>
<div class="clearfix hidden-xs hidden-sm"></div>
<?php }
<?php endwhile; wp_reset_postdata(); ?>
<?php else: ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
clearfix
xs
sm
, md
- , .
. js-masonry
, Masonry.js, , , , , ? , , JS , .