Home › Forums › Add-ons › Repeater Field › Using repeaters and post object fields together › Reply To: Using repeaters and post object fields together
You have a couple problems that are likely causing unpredictable results
For example, your using the variable name $post_object
in both the parent and sub loops. wp_reset_postdata();
needs to be called at the end of your first if ($post_object) {
. You’ve also got a couple of nested setup_postdata( $post );
calls that can cause unpredictable results that I explain here https://support.advancedcustomfields.com/forums/topic/nested-post-object-fields/#post-48227
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.