Support

Account

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 @elliot,
    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.