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 />';
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.