Home › Forums › General Issues › Create a number field with Auto increment Value › Reply To: Create a number field with Auto increment Value
In order to do this you would need to create another field or use a standard WP option value. You will need something to keep track of the last value used.
Then you could create a new field and using acf/prepare_field make the field readonly and get the value of the option to set the value of the field. Then increment and update the option.
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.