Home › Forums › General Issues › Bulk Fetch ACF field across multiple posts › Reply To: Bulk Fetch ACF field across multiple posts
How many posts do you need to query exactly?
What if you look to store the post IDs elsewhere, saving the need to run the query each time?
One possible option would be to use rest API and add some ACF custom fields. Whenever a post is updated or published, you could then look to run a function which runs a batch process script, gathering all the post IDs or other data and saves that to a specific field.
That way, your map only needs to use this data rather than constantly running queries.
I found querying from the API far quicker, especially when running as a batch processing script.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.