Is it possible to do a while loop with Accordion from bootstrap ? I am trying to make a FAQ section with the repeater add pro add on from advanced custom fields. All the questions show up but they all pull up the first answer. How can I achieve this?
<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>
collapseOne