【发布时间】:2021-06-07 21:18:16
【问题描述】:
我绞尽脑汁想知道为什么这不起作用。对我来说似乎是正确的,但我一定错过了什么。
<?php
if( have_rows('cta_box') ):
while( have_rows('cta_box') ) : the_row();
echo get_sub_field('cta_header');
echo get_sub_field('cta_content');
endwhile;
endif;
?>
我在做傻事吗? 谢谢
【问题讨论】:
标签: wordpress advanced-custom-fields