CPT tags not showing when editing post

In this line

register_taxonomy('types','xx',array(

You should replace the xx with the custom post type name that you want the taxonomy to be applied.