This snippet will show you how to get a single post category regardless of the post type. You can use this shortcode on any post type page or template file, and the category for that post type will be returned.
In fact, we use this exact code to return the category of the various post types on our site.
This specific snippet is useful if you have a blog that only has one category per post.
Add this to your functions.php file: