Home › Forums › Bug Reports › wp_reset_postdata and acf/load_field issues › Reply To: wp_reset_postdata and acf/load_field issues
Yeah I suppose however I’ve seen that solution a fair amount of times before. I think it’s somewhere in the codex as well..
But honestly since you’re just fetching the post title and ID you could do without setting up post_data at all..
You could just loop over the $venues[‘posts’] in a foreach loop and output ->ID and ->post_title. Save yourself some function calls in the process.
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.