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.