I am using active custom fields plugin to display and submit form in frontend inside buddypress groups page.
Form is submitted and record is entered successfully but a blank page is displayed after form submit. Only the header section of the page is displayed.
I have tried using acf/save_post
and acf/pre_save_post
hooks to redirect page but none of them seems to work.
Here is my code:
$options = array(
'post_id' => 'new_post',
'post_title' => true,
'new_post' => array(
'post_type' => 'event',
'post_status' => 'publish'
),
'submit_value' => 'Create New Event'
);
acf_form($options);
Thanks in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire