Add category, tag and time data to your WordPress post template

Adding categories, tags and the time a post was posted is all useful stuff to know. Here’s how it’s done…

Returns: Tags: Apples, Pears, Bananas (if you have Apples, Pears and Bananas as tags!!!)

Returns: Tags: Fruit, Vegetables, Meat

Returns: 1st Mar 2014

More information and how to extend these further can be found at WordPress: the_tags, the_category, the_time and PHP Date

Leave a Reply

Your email address will not be published.