How to add tags to your template Wordpress 2.3

Posted by Jimmy'z on December 18, 2007

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.

Trackbacks

Use this link to trackback from your own site.

Comments

You must be logged in to leave a response.