Home › Forums › Add-ons › Repeater Field › repeater field not returning data › Reply To: repeater field not returning data
There is something very strange going on between the first and second loop that should not be.
// test
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();
}
}
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();
}
}
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.