Home › Forums › Bug Reports › acf_get_value notice incorrect › Reply To: acf_get_value notice incorrect
I’m going to mark this thread as resolved with my own workaround but I still think this is a bug in the library and should be addressed. Using the init hook does not solve the issue it only suppresses the notice and actually returns the wrong return type!
To conclude, in my opinion:
ACF should either drop support for get_value
by name or make acf_get_reference
also look in the local store to resolve name -> key mapping instead of only relying on the DB or internal cache.
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.