Eu preciso quebrar cada 4 posts wordpress em um div

Eu preciso de um div para embrulhar todos os quatro posts no loop wordpress. Então seria como

<div>
four posts
</div>
<div>
four posts
</div>

meu código atual é esse

<?php 
        $i = 0;
        $wrap_div = "<div class='frak'>";
            if ( have_posts() ) {
               echo $wrap_div;
                while ( have_posts() ) {
                    the_post();

        ?>

        <div class="wine-section">
            <?php the_post_thumbnail(); ?>
            <div class="wine-info">
                <a href="<?php the_permalink(); ?>"><?php the_title( '<h1>', '</h1>' ); ?></a>
                <?php the_meta(); ?>
            </div><!-- /wine-info -->
            <div class="c"></div>
        </div><!-- /wine-section -->

        <?php       
                if ($i % 4 == 0) { echo "</div>" . $wrap_div; }
                } // end while
            } // end if
            $i++;
        ?>

Esse código envolve todos os posts individualmente. Alguma ideia?

questionAnswers(2)

yourAnswerToTheQuestion