Home › Forums › Backend Issues (wp-admin) › Media disappears when saving a post › Reply To: Media disappears when saving a post
I would comment out line 90 of the post type switcher plugin
add_filter( 'wp_insert_attachment_data', array( $this, 'override_type' ), 10, 2 );
I don’t see any reason why anyone would want to change the post type of attachments.
Honestly, the plugin has not been updated in over a year, not even to update the tested up to value, and from the looks of the support forum it is not getting any. I wouldn’t use this plugin at all. If you really need this then I’d deactivate this plugin and only activate it when needed. How often do post types need to be switched?
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.