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?


Source: shortcode

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.