Support

Account

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:
    – document_review_date
    – document_review_date_reminder_trigger

    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?