How to add tags to your template WordPress 2.3

Although I upgraded to WordPress 2.3 over a month ago, I hadn’t taken the time to edit my template so that it would show the tags on each of my posts. I also wanted to add a tag cloud to the sidebar. It’s actually very easy to add tags to your template with WordPress 2.3.The following two links will help you get all set up:

  • the_tags: this method is used for displaying the tags of a single post. Use this within your Single Post template file.
  • wp_tag_cloud: this method will build a tag cloud for you. Use this within your Sidebar template file.

It’s pretty simple. Just add those two methods to your single post and sidebar templates, and you’ll be ready to go.