Get custom category ID of current custom post within the loop

get_the_terms( $id, $taxonomy ); 

second parameter should be your taxonomy name instead of category name