Home › Forums › Front-end Issues › acf_form without loggin in › Reply To: acf_form without loggin in
Hello,
Just letting you know, I also tried this code, which I took from the acf website:
acf_form(array(
'post_id' => 'new_post',
'post_title' => true,
'post_content' => true,
'new_post' => array(
'post_type' => 'hufter',
'post_author' => 9,
'post_status' => 'publish'
),
'return' => home_url('contact-form-thank-you'),
'submit_value' => 'Send'
));
(hufter is the post_type we use)
But even that is sending me back to the page I already am on, when I am not logged in, and when I am logged in; it does save the post but it does not assign it to the user (even though that user is set as admin so he can publish)
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.