Home › Forums › Feature Requests › Generate fields solely from PHP › Reply To: Generate fields solely from PHP
Hi @jjeaton
The field key
must be fixed in your code and cannot be created dynamically. It is the link between a saved value and the field that saved it. It is like an ID in the database row.
You will need to generate this yourself and paste it in your code.
Perhaps start at field_1, and increment the number for each field?
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.