Support

Account

Home Forums Backend Issues (wp-admin) Updating ACF Data in DB Reply To: Updating ACF Data in DB

  • Hi, John –

    Thank you for this explanation. Your support is much appreciated. As things stand I have a small snippet which runs in the background as the form is submitted:

    add_action('gform_advancedpostcreation_post_after_creation_7', 'gf_calendar_date', 10, 4);
    function gf_calendar_date($post_id, $feed, $entry, $form) {
      update_post_meta( $post_id, 'calendar_date', $entry['16'] );	
    } 

    Should this be changed to this…

    add_action('gform_advancedpostcreation_post_after_creation_7', 'gf_calendar_date', 10, 4);
    function gf_calendar_date($post_id, $feed, $entry, $form) {
      update_post_meta( $post_id, 'calendar_date', $entry['16'] );
      update_post_meta( $post_id, '_calendar_date', 'field_63d65a709c89a' );	
    } 

    Thanks again.