Support

Account

Home Forums Backend Issues (wp-admin) Set post publish date by custom field? Reply To: Set post publish date by custom field?

  • @pjsando this only works, if you get the date field unfiltered, directly from the database:

    
    $acfDate = get_field('post_date', $post_id, false); // the last argument, 'false', gets the field unfiltered from the db.