Support

Account

Home Forums Add-ons Repeater Field Repeater Field Reply To: Repeater Field

  • I have two repeater fields, the second is duplicated from the first. The first one works fine, but the second one does not return any data.

    The php for the problematic repeater is as follows:

    <?php if ( have_rows('faq_column_2') ) : 
            while ( have_rows('faq_column_2') ) :
              the_row(); ?>
                <div class="faq_accordian">
                  <div class="title"><?php the_sub_field('question_col2'); ?></div>
                  <div class="copy"><?php the_sub_field('answer_col2'); ?></div>
                </div>
            <?php endwhile;
              else :
                echo ('no rows found'); 
              endif; ?>

    My field names match up as shown in this screenshot:
    acf repeater screenshot

    I have tried rewriting the code (rather than copy/paste), I deleted the ACF plugin, uploaded the latest version, edited the sub fields to have a different name, and no luck. Then I deleted the repeater field, added a new one with all new names, still no luck.

    I tried a var_dump as described by @csaborio, and it returns all my data successfully.

    The repeater, however, always returns “no rows found”. Very strange. Any ideas?