Support

Account

Home Forums Add-ons Repeater Field repeater field not returning data Reply To: repeater field not returning data

  • The last suggestion I have is to throw your content back into the mix and see what happens

    
    echo '<b>values before first repeater</b><br />';
    echo 'POST: '; var_dump(acf_get_valid_post_id(false));
    echo '<br /><br />Active Loop: '; var_dump(acf_get_loop('active'));
    echo '<br /><br />Previous Loop: '; var_dump(acf_get_loop('previous'));
    acf_get_loop('active');
    if (have_rows('faq')) {
      while (have_rows('faq')) {
        the_row();
        the_sub_field('question');
        the_sub_field('answer');
      }
    } else {
       echo 'No Rows<br />';
    }
    echo '<b>values after first repeater</b><br />';
    echo 'POST: '; var_dump(acf_get_valid_post_id(false));
    echo '<br /><br />Active Loop: '; var_dump(acf_get_loop('active'));
    echo '<br /><br />Previous Loop: '; var_dump(acf_get_loop('previous'));
    acf_get_loop('active');
    if (have_rows('faq_column_2')) {
      while (have_rows('faq_column_2')) {
        the_row();
        the_sub_field('question_col2'); 
        the_sub_field('answer_col2');
      }
    } else {
       echo 'No Rows<br />';
    }