Home Forums Backend Issues (wp-admin) Taxonomy not saving on Attachment Reply To: Taxonomy not saving on Attachment

  • Hi,
    Thanks Jonathan!!!

    This is the final code that solves the issue:

    // Remove taxonomy from the attachment pages so the acf taxonomy can work
    function remove_custom_taxonomy()
    	remove_meta_box('YOURTAXONOMYNAMEdiv', 'attachment', 'side' );
    add_action( 'admin_menu', 'remove_custom_taxonomy' );
    // Add this in to remove it from the popup editor
    function attachment_remove_taxonomy( $fields ) {
    	  return $fields;
    add_filter( 'attachment_fields_to_edit', 'attachment_remove_taxonomy' );