Home › Forums › Front-end Issues › acf_form without loggin in › Reply To: acf_form without loggin in
Thanks for your reply. Unfortunately, I already tried it like that, and now again, but it still fails when a user is not logged in.
I get redirected back to the same page I already am on as soon as I use post_author in the array.
$new_post = array(
‘post_id’ => ‘new’,
‘post_author’ => ‘9’,
‘field_groups’ => array(2023,2028),
‘form’ => true,
‘return’ => ‘%post_url%’, // Redirect to new post url
‘html_before_fields’ => ”,
‘html_after_fields’ => ”,
‘submit_value’ => ‘Melding plaatsen’,
‘updated_message’ => ‘Melding geplaatst!’
acf_form( $new_post );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.