고급 맞춤 필드 리피터 플러그인을 사용하여 링크가있는 큰 이미지 격자를 만듭니다. 맨 위에 만드는 최신 항목을 원합니다. 코드를 통해 순서를 어떻게 바꿀 수 있습니까?고급 사용자 정의 필드 리피터 - 역순 정렬 방법 (WordPress)
어떤 도움도 좋은 것입니다. 다음은 출력 버퍼를 사용하여, 내 머리 위로 떨어져 내 현재 코드
<?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;
?>