Home › Forums › ACF PRO › 5.5.8 Update › Reply To: 5.5.8 Update
Made some progress on this, using setup_postdata( $post_object ) is a no-no according to the codex. You should always use setup_postdata( $post ) where the var name is “$post” and not anything else.
See Function Reference/setup postdata
Switching my example from $blockPost to $post has partially cured the issue although it persists on “Trying to get property of non-object” on the last iteration.
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.