Duplicate post when rendering with acf_form_head (using init hook, priority 1) and acf_form().
Hello,
Currently, I’m making a plugin which will render a ACF form with options. I use the action acf/save_post to update the post meta and do my custom action.
But it always create 2 posts in the backend.
Can you please show me where is the part that I’m doing wrong?
Thank you!
– I tried to verify that acf_form_head is only loaded once, and it’s correct.
– I tried to verify that there’s no wp_insert_post that run along with the acf/save_post, and nothing
– I tried to verify that there’s an AJAX action can do that, but it’s not correct too.
So, can you please help me?