Home › Forums › ACF PRO › Storing date fields? › Reply To: Storing date fields?
The reason that you need to open the post and save it is because that field_key is not added correctly to the database. When a new post is created the custom ACF field does not exist and this means that acf does not know exactly what to do with the field. This is why you need to use the field key when updating the field so that ACF knows that this is a date field and also inserts the correct field key reference into the database.
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.