I am creating a front form with ACF pro. Right now I’m looking to associate a evt_venue_id with correct event meta information, but I don’t find the correct name or line to do it. I try this, but it’s not working :
// Add the value venue add_post_meta( $post_id, 'evt_venue_id', $_POST['acf']['field_569b7988a2e49'] );
Is it the good way ?
Have you the corect name of “evt_venue_id” ?
Have you a list of correct name to associate to the event evt_ticket ? evt_ticket_satus ? evt_people ? etc.
My aim is to create a complet front end form for external users. If you are interested I will share my final code on github.
If I understand your question, you’ll find the data you’re looking for in the _esp_event_venue table, which you may need to do a JOIN on that table to get the Event’s venue ID if you’re not using the built in model queries. The same idea would apply to the other pieces of data you’re looking to get.
In my database “OBJ_type” remains empty (Others fields are ok). I don’t know what kind of value I have to inject (I try ‘Event’, ‘Events’, ‘espresso_events’).
The support post ‘EE4 – Front form with ACF’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.