Home › Forums › Bug Reports › acf_get_value notice incorrect › Reply To: acf_get_value notice incorrect
What exactly is this doing $fields->aliases[$name]
Are you attempting to use field names that are not actually the field names?
ACF no longer allows getting fields using field names that are not actually defined in the fields or for fields that are defined somewhere else.
For example, trying to use get_field('_thumbnail_id')
for the post thumbnail instead of get_post_meta($post_id, '_thumbnail_id', true)
will result in an error/warning because this is not a field defined ACF (usually)
https://www.advancedcustomfields.com/blog/acf-5-11-release-rest-api/
https://www.advancedcustomfields.com/blog/acf-5-11-1-release/
So of you are doing something that uses a field name other than the defined field name then you’re going to get this error. ACF is not finding a field defined with that name. The reason that using the field key does not create the error is that the field key never changes and ACF finds the field associated with the field key.
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.