I'm currently trying to wrap the first 2 posts in a div with the video and then output the remaining posts with a div wrapped around every 3 posts, as per image.
the line
if( $wp_query->current_post < 2 ):
i've also tried with
if($count < 2)
heres a condensed version of what i have so far: Any suggesttions would be really appreciated.
<div class="row-fluid">
<div class="span8">
<video></video>
</div>
<?php $count = 1; ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if( $wp_query->current_post < 2 ):?>
<div class="span4">
// content
</div>
<?php if($count % 2 == 0) {
echo '</div><div class="row-fluid">';
}?>
<?php else: ?>
<div class="span4">
//content
</div>
<?php if($count % 3 == 0) {
echo '</div><div class="row-fluid">';
}?>
<?php $count++;?>
<?php endif; ?>
<?php endwhile; ?>
<?php echo '</div>'; ?>
</div>
<?php else : ?>
<article>default wp stuff</article>
<?php endif; ?>