How to set custom post type field as post title to avoid ‘Auto Draft’
I have a custom post type called artists, I combine the artist acf field of first_name and last_name and set that as the title. Generate WordPress Post Tittle from ACF Fieldshttps://stackoverflow.com/questions/71565994/generate-wordpress-post-tittle-from-acf-fields
Generate Post Title and Slug from Advanced Custom Fields
I often need to create post titles in WordPress based on fields I’ve generated using Advanced Custom Fields. Below is an example that assumes we have a Custom Post Type registered to “staff” and two Custom Fields with the name of “first_name” and “last_name”. Using the “update_value” hook provided by Advanced Custom Fields and “wp_update_post” […]