I had some html in my header, so it was throwing that error due to it being before acf_form_head. Loading acf_form_head(); before that made the error stop
However I’m noticing that while the images are being uploaded to media, they still aren’t being added to the post
Moving the get_header(); above acf_form_head(); worked, the images are now being uploaded and the ‘add row’ is now working, but I’m getting an error after submission:
Warning: Cannot modify header information – headers already sent by (output started at C:…wp-includes\class.wp-styles.php:214) in …\wp-includes\pluggable.php on line 1340
not sure what’s going on
I’m assuming I’m missing:
// Enqueue uploadedr scripts.
acf_enqueue_uploader();
and
// Trigger the append action and provide the newly appended jQuery element.
acf.do_action('append', $('#popup-id'));
but adding these doesn’t seem to do the trick. Maybe I’m adding them wrong?