In order to get the name of a taxonomy term from its slug, use the following code, where “fish” is the taxonomy and “great-white-shark” is the taxonomy term’s slug:
$term = get_term_by('slug', 'great-white-shark', 'fish'); echo $term->name;
This will print out the name of the term, which is “Great White Shark.”