title: Advanced Custom Fields Repeater - How to reverse order (WordPress)
body: <p>I'm using the advanced custom fields repeater plugin to create a a big grid of images with links. I would like the newest items I create at the top, so what I'm asking is how do I reverse the the order via the code?</p>
  
  <p>Any help would be great. Here is my current code</p>
  
  <pre><code>&lt;?php if( have_rows('shop_product') ):        
  
              while ( have_rows('shop_product') ) : the_row(); 
  
          ?&gt;
  
                  &lt;div class="shop-item"&gt;
                      &lt;div class="image-hover"&gt;
                          &lt;div class="image-hover-inner"&gt;
  
                              &lt;img src="&lt;?php the_sub_field('product_image');?&gt;"&gt;
  
                              &lt;div class="image-caption"&gt;
                              &lt;div class="image-caption-inner"&gt;
                              &lt;a href="&lt;?php the_sub_field('product_url');?&gt;" target="_blank"&gt;&lt;?php the_sub_field('product_brand');?&gt;&lt;br&gt;
                              Buy Now&lt;/a&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;?php endwhile; 
          else :
          endif;
          ?&gt;
  </code></pre>