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?
Many thanks for your reply.
I’ll tweak this function/hook to see if I can understand the way it works.
I do have a question , though:
the “field” I need to change is the post_name, which obviously goes into the WP_POST Table of the DB. If I understand correctly, this should be the $value from the hook function ? & the aggregated ‘data’ (ie. something like get_field(‘firstname’).” “.get_field(‘lastname’)) should be the $field parameter of the function ? & How do I get the $post_id ?
Sorry if I sound thick, lol !
I’d like to var_dump() either the WP_post post before it gets recorded to see what the variable / object hold . When & how should I do this ?
Many thanks again for your help.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.