I have been trying to set up a front end form to generate posts and am having issues with the title and content fields.
I have a custom title and content field (wyswig editor) because I want to add conditional logic that ACF Pro offers. However, when I try to use these custom fields and submit the form, a blank post is created without the title or the content that was entered.
Is it possible to have a post generated using custom fields for the title and content?
Thanks.
Yes, but you need to create an acf/save_post filter https://www.advancedcustomfields.com/resources/acf-save_post/ that gets the values from the custom fields and populates the post title and content with wp_update_post() https://codex.wordpress.org/Function_Reference/wp_update_post. There is a good example of generating a title from acf fields here https://stackoverflow.com/questions/54245106/auto-fill-a-custom-post-type-title-from-acf-field