title: Advanced Custom Fields loop behaviour
body: <p>I have a page with 3 custom fields. For each of these fields I need to use a template. So what I do is</p>
  
  <pre><code>&lt;?php if( have_rows('page_block') ):?&gt;
      &lt;?php while ( have_rows('page_block') ) : the_row();?&gt;
          &lt;?php if( get_row_layout() == 'content_block' ):?&gt;
              &lt;?php get_template_part("content-block");?&gt;
          &lt;?php elseif( get_row_layout() == 'slider' ):?&gt;
              &lt;?php get_template_part("slider"); ?&gt;
          &lt;?php elseif( get_row_layout() == 'news_block' ):?&gt;
              &lt;?php get_template_part("news-block"); ?&gt;
          &lt;?php endif; ?&gt;
  
      &lt;?php endwhile; ?&gt;
  ....
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>The problem is that only the first two fields are displayed on the page. So when the order of the fields is</p>
  
  <ol>
  <li>Content-block </li>
  <li>Slider</li>
  <li>News-block</li>
  </ol>
  
  <p>Only the content-block and slider are shown. When I place the slider at the bottom, only the content-block and news-block are displayed. </p>
  
  <p>Any idea what the problem might be?</p>
  
  <p><strong>EDIT</strong>
  Forgot to mention that when I echo the get_row_layout(), I get the names of all 3 fields.</p>
  
  <pre><code>&lt;?php if( have_rows('page_block') ):?&gt;
      &lt;?php while ( have_rows('page_block') ) : the_row();?&gt;
          &lt;?php echo get_row_layout(); ?&gt;
  
      &lt;?php endwhile; ?&gt;
      &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Displays content_block slider news_block</p>