title: Special Layout of Items in Wordpress Loop
body: <p>I'm working on a wordpress theme, and I have a rather unique structure that I need to output the results from the Loop into. The output can be simplified to the following:</p>
  
  <pre><code>&lt;div class="row"&gt;
    &lt;div class="entry-1"&gt;
      /* details from first iteration of The Loop */
    &lt;/div&gt;
    &lt;div class="entry-2"&gt;
      /* details from second iteration of The Loop */
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row"&gt;
    &lt;div class="entry-3"&gt;
      /* details from third iteration of The Loop */
    &lt;/div&gt;
    &lt;div class="entry-4"&gt;
      /* details from fourth iteration of The Loop */
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So basically, I need the first two iterations of The Loop to output their details within a master <code>DIV</code> having the class name of "row". The next two iterations need to do the same, in a new <code>DIV</code> having the same aforementioned class name. This would continue on until <code>have_posts()</code> is false, accomodating the possibility of having a single remaining post, which would find itself alone within a master <code>DIV</code> having, again, the class name of "row".</p>
  
  <p>I can't seem to think of the best way to accomplish this. Any direction would be greatly appreciated:</p>
  
  <pre><code>while ( have_posts() ) : the_post();
    /* My mind is blank */
  endwhile;
  </code></pre>