Home › Forums › General Issues › Frontend Form not populating right in backend › Reply To: Frontend Form not populating right in backend
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 false
or 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 acf/save_post
hook.
Thanks 🙂
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.