可以从引导程序中使用手风琴进行while循环吗?我正在尝试从高级自定义字段中使用repeater add pro附加组件制作常见问题部分。所有的问题都出现了,但他们都找到了第一个答案。我怎样才能做到这一点?
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<?php if(get_field(\'faq_general_ht\')): ?>
<?php while(has_sub_field(\'faq_general_ht\')): ?>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true">
<p><?php the_sub_field(\'faq_general_question_ht\') ?></p>
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel">
<div class="panel-body">
<p><?php the_sub_field(\'faq_general_answer_ht\') ?></p>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>