Hi,
I would like to ge this markup when looping out my posts:
<div class="row">
<div class"post"></div><div class"post"></div><div class"post"></div>
</div>
<div class="row">
<div class"post"></div><div class"post"></div>
</div>
<div class="row">
<div class"post"></div><div class"post"></div><div class"post"></div>
</div>
<div class="row">
<div class"post"></div><div class"post"></div>
</div>
etc...
Basically I want a row with three posts, then one with two, then with three, and so on. Is this possible?
This is my current loop:
<?php
$args = array(
'post_type' => 'members'
);
$the_query = new WP_Query( $args );
?>
<?php if ( have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="post"></div>
<?php endwhile; endif; wp_reset_query(); ?>