Support

Account

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.