Home › Forums › Bug Reports › acf_get_value notice incorrect › Reply To: acf_get_value notice incorrect
It seems like poor design, needing an additional roundtrip per field you get by name.
Why not resolve it from the internal storage like I’m doing right now? Or not support fetching by name if it’s inefficient.
With the new notice, you should always have the key mapping in the internal store anyway.
If you must get field values before WP caches the meta values for a post then calling get_post_meta($post_id) will cause WP to cache all meta values for a post and reduce queries because ACF will not cause a query for each field.
That is interesting to know but I guess won’t work with options that are heavily used in my case.
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.