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?
Any help would be great. Here is my current code
<?php if( have_rows('shop_product') ): while ( have_rows('shop_product') ) : the_row(); ?> <div class="shop-item"> <div class="image-hover"> <div class="image-hover-inner"> <img src="<?php the_sub_field('product_image');?>"> <div class="image-caption"> <div class="image-caption-inner"> <a href="<?php the_sub_field('product_url');?>" target="_blank"><?php the_sub_field('product_brand');?><br> Buy Now</a> </div> </div> </div> </div> </div> <?php endwhile; else : endif; ?>