Home › Forums › ACF PRO › update_field date field not displaying date on the admin front-end › Reply To: update_field date field not displaying date on the admin front-end
Just jumping on this for advice.
I’m trying to calculate a date (review date – 7 days = reminder date)
so I have 2 ACF fields:
In my function, I have:
$reviewDate = get_field(document_review_date); $remindDate = date("Ymd", strtotime($reviewDate . '-7 days')); update_field(document_review_date_reminder_trigger, $remindDate);
$remindDate is returning the correct calculated date.
However, it doesn’t seem to be updating my ACF field as it is not shown in the field in the post editor.
What am I doing wrong here?
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!