I would like to style my own front-end form (that creates a new post) and save the field inputs as ACF fields (so not using
What's the easiest/cleanest way to do so?
The only solution that comes to my mind after reading the Doc is:
- Upon submit grab every field with
- Look up the field_keys (e.g.
field_424244ec4cds03) and run
wp_update_postmetato create every meta entry manually
Is that the way to go?
I was wondering whether there might be a chance to hook into somewhere and do something like
$_POST['fields']['field_key']=my_value. This way I would change the value before it is inserted into the database by ACF (no need to do the database insertion by myself..).
Any ideas/help greatly appreciated!