Home › Forums › Front-end Issues › acf_form without loggin in › Reply To: acf_form without loggin in
Hiya @jeffer
Posts always need to be assigned to an author. So what I’d suggest is create a user in your admin to whom these posts will be assigned – Anon User – or whatever you’d like to call them. Remember to make sure they’re of the correct role to publish posts.
Then in your acf_form
function, specify this user to be the author of that post. In the args for your form, just add 'post_author' => 123
– where 123 is the ID of the user you’ve created.
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.