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!
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.