Home › Forums › General Issues › How display fields with acf and not save them? › Reply To: How display fields with acf and not save them?
You can hack this by creating an acf/save_post action that runs before ACF (priority < 10) https://www.advancedcustomfields.com/resources/acf-save_post/
In this action you test test for the post type and if it is your post type you can unset the ACF data
unset($_POST['acf']);
Alternately, if you only want this to happen for certain fields you can unset the value of that field key specifically
unset($_POST['acf']['field_123456']);
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.