Ah, you are right on. Such a headache. I could have sworn I checked the docs again at some point, but who knows–maybe they weren’t updated at that time.
Thanks much!
Good to know I’m not the only the one experiencing this–I thought I might be due to the lack of others submitting any kind of bug.
Do you have any guess as to what might be going on here, or have you tried any kind of workaround?
After many iterations of trying to fix this, I’m starting to think it’s a bug.
I noticed that if I change 'post_status' => 'draft'
to 'post_status' => 'publish'
everything works fine.
Okay, realized there were lots of console errors that were most likely related to this (it’s what was causing the date picker issue among others)
Noticed that if I switched the order of
<?php acf_form_head(); ?>
<?php get_header(); ?>
to
<?php get_header(); ?>
<?php acf_form_head(); ?>
based on this
This caused an issue on submit as mentioned.
So, I added
<?php
ob_start();
get_header();
acf_form_head(); // <--- here!
echo ob_get_clean();
?>
Now the info appears in the admin correctly after submit…but doesn’t display correctly on the front end.
To be continued.