Hi, my post is created via formidable form, I don’t know if this can affect.
For now, however, it only works if I update, when I create the function it does not set the date with the field stored in acf field.
Hi Jhon, and thanks for your reply.
The space is an error that I had already solved, in fact the function is correct and run.
But it only works when I update a post, I would like it to work when I create the post instead.
Can you help me ?
Thank you.
Thanks for your help.
However, I would like the function to be activated both when the post is created and when it is updated …
What could I use instead of wp_update_post?
Thanks in advance.