Support

Account

Home Forums General Issues Add content to ACF Field when post is created not just when saved/updated Reply To: Add content to ACF Field when post is created not just when saved/updated

  • Turns out I was referencing the wrong template. My acf_form() did have the correct arguments.

    I solved the problem by using field keys instead of field names and adding $post_id to the update_field function.

    E.g. update_field(‘field_55760114e5887’, $per_week, $post_id);

    Thanks a lot for helping me troubleshoot the problem though!