Home › Forums › ACF PRO › have_rows causing infinite loop when getting repeater values from another page › Reply To: have_rows causing infinite loop when getting repeater values from another page
Okay, ultra simple version of this, with a temporary workaround.
The problem is that have_rows uses $post_id from the current page when you don’t specifically set it, even if it’s nested in a have_rows that has it specifically set.
The workaround is to setup_postdata before the third-level have_rows, and wp_reset_postdata it once we’re done with it.
Can this be updated to use the parent have_rows post if it’s been specifically set?
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.