Home › Forums › Backend Issues (wp-admin) › Select Author with ACF Field? › Reply To: Select Author with ACF Field?
Thanks for this @metalpotatouk this is super helpful. This works almost perfectly but I’m still having a small issue. I’m using Buddyforms to create/edit front end posts with ACF managing the fields for a custom post type in the backend. I’ve added the code you shared to the functions.php file.
When I try to assign to an author (other than the signed in user) and save the post the ACF field is updated correctly but this doesnt initially update the post_author field (the post is still assigned to the logged in user). If I go to the back end and open the post I can see the author field has been updated correctly and if I then press ‘update’ it will then update the post_author field correctly.
Is there something that could trigger this update without me having to go into the backend and do it manually?
Thanks
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.