A shortcode to display the name of a category in a post in WordPress

What I’m trying to do is find a way to display the name of a post category in WordPress, preperably as a shortcode. For example:

[category-name] Blah, blah, blah

on the post would be become

Blog: Blah, blah, blah

Is this at all possible? And what would be required to set it up?

Thanks


Source: shortcode

Leave a Reply