In the built category, we can use
the_category() to show if the post has category and the name of the category.
Now, I am using my custom post type and custom taxonomy. The above two functions are invalid in this case. I wonder what's the API to use here? Thank you.