Home › Forums › ACF PRO › Populate post title from another field › Reply To: Populate post title from another field
This needs to be done using either an acf/save_post filter https://www.advancedcustomfields.com/resources/acf-save_post/ or an acf/pre_save_post filter https://www.advancedcustomfields.com/resources/acf-pre_save_post/
In either case, in your filter you get the field and use wp_update_post() to update the title of the post https://codex.wordpress.org/Function_Reference/wp_update_post
There is an example of using acf/save_post here https://support.advancedcustomfields.com/forums/topic/set-post-title-from-field-group-toggle/ and you can probably find others
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.