Home › Forums › General Issues › Creating theme fields – generating a key? › Reply To: Creating theme fields – generating a key?
The key for a field cannot change. If it does, the reference value will not connect the value to the field.
Think of the field’s key as a tables ID column.
Unfortunately, this cant be generated and you will need to somehow save the key to the field and reuse the same kjey on each page load.
If you are trying to create a field without defining a key for it, this will prove very difficult.
Hope that helps.
Thanks
E
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.