小编osc*_*car的帖子

ACF Wordpress 组内的中继器

我正在使用 Wordpress 的高级自定义字段并尝试在组内循环转发器。我得到的只是“注意:数组到字符串的转换......”

出了什么问题,我该如何解决?

<?php if( have_rows('start_horlurar') ): while ( have_rows('start_horlurar') ) : the_row();  ?>

<?php $horlur = get_sub_field('horlur'); ?>

<?php if( have_rows( $horlur['arsmodeller_lankar']) ): while ( have_rows($horlur['arsmodeller_lankar']) ) : the_row();  ?>

<?php echo get_sub_field('lank'); ?>

<?php endwhile; endif; ?>

<?php endwhile; endif; ?>
Run Code Online (Sandbox Code Playgroud)

php wordpress while-loop nested-loops advanced-custom-fields

0
推荐指数
3
解决办法
2万
查看次数