title: Create div for every X divs
body: <p>I have function right now:</p>
  
  <pre><code>&lt;?php while ( have_rows('proyects') ) : the_row(); ?&gt;
  
          &lt;div class="box"&gt;
              &lt;p&gt;&lt;?php the_sub_field("texte");?&gt;&lt;/p&gt;
          &lt;/div&gt;
  
  &lt;?php endwhile; ?&gt;
  </code></pre>
  
  <p>Which outputs something like this:</p>
  
  <pre><code>&lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  &lt;div class="box"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The problem is that I want it to output every three <code>box</code> a div container so the final result should look like this:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="container"&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="container"&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
      &lt;div class="box"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What would be the best way to do it?</p>