Support

Account

Forum Replies Created

  • 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 ) {
    		
    		unset($fields['YOURTAXONOMYNAME']); 
    	  return $fields;
    	}
    add_filter( 'attachment_fields_to_edit', 'attachment_remove_taxonomy' );
Viewing 1 post (of 1 total)