Support

Account

Home Forums Front-end Issues Nested while loop Reply To: Nested while loop

  • Sorry for the double post, but I solved it. I recently updated my accordion counter to use <?
    <?php $count = count(get_field(‘faq_accordion’)); echo $accCount; ?> but frgot to remove my original counter variable declaration from in my while loop. :
    php while( have_rows(‘faq_accordion’) ): the_row(); $accCount = 0 ?>