Support

Account

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']);