Could you please share the code you used? Also, please don’t forget to remove the unused
acf/save_post function (vbs_post_title_updater2). Also, you’re not supposed to use the ‘post_title’ option in the acf_form() arguments like this:
'post_title' => wp_strip_all_tags($new_title2),
The ‘post_title’ option will only receive
true value. If you want to set it for the new post, you need to do it like this:
'new_post' => array( 'post_type' => 'en', 'post_status' => 'publish' 'post_title' => wp_strip_all_tags($new_title2), ),
Or just remove it because the new title will be replaced later in the
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!