Home › Forums › Backend Issues (wp-admin) › Replacing custom post type post title with an acf? › Reply To: Replacing custom post type post title with an acf?
Hi @jmb
You should use the ‘acf/update_value’ filter. Docs here: http://www.advancedcustomfields.com/resources/filters/acfupdate_value/
You should target the second field, not the first. I’m guessing this is ‘last_name’.
In your filter function, you can get the last_name value from $value (a parameter of the function), and you can get the ‘first_name’ via a standard get_field function.
Hope that helps.
Thanks
E
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.