Home › Forums › Bug Reports › acf_get_value notice incorrect › Reply To: acf_get_value notice incorrect
Update after using my workaround for a while now.
Field names are not unique and the internal ACF store just overwrites name => key mapping when a duplicate is added. When using my workaround this makes get value potentially return the wrong field key.
For example, using the following setup would always return the key for field group 2:
field group 1
– field “link”
field group 2
– field “link”
I’ve expanded my workaround to make a difference between options and post fields assuming options are actually unique making options always do a DB roundtrip again.
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.