Home › Forums › General Issues › How to change 'post_status' and 'meta_input' of already created post? › Reply To: How to change 'post_status' and 'meta_input' of already created post?
for post ID you need to supply the id of the post you are editing, ACF may not be able to figure that out unless the form is located inside “The Loop” in “single-task.php”.
Then you need to create an acf/save_post filter to update the post status and other information. ACF will not do this for you. https://www.advancedcustomfields.com/resources/acf-save_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!
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.