This seems to finally have been fixed in ACF Pro Version 5.2.0, for the most part. Send a never-valid ID as the
post_id for new posts (like
-5) and then check for the when you save the post. You’ll need to manually save the post, or add to the
acf/pre_save_post filter as described here: http://www.advancedcustomfields.com/resources/using-acf_form-to-create-a-new-post/
It doesn’t work when sending a string as the
post_id still using
acf_form, but when editing you’re sending an int so it seems to work.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.