Add New Post (Custom Post Type) Deletes 1 Post’s Custom Meta Data April 28, 2022 by Tarik Billa if(isset($_POST["testimonyname"])) Placing this code before the update_post_meta lines worked perfectly.