📜  获取 acf 中继器字段 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:53.041000             🧑  作者: Mango

代码示例3
if( have_rows('rating_field') ):
  while ( have_rows('rating_field') ) : the_row();
    $title = the_sub_field('rating_title');
    $number = the_sub_field('rating_number');

    echo $title;
    echo $number;
  endwhile;
else :
endif;