About Gary Burge
I am an experieced web programmer, techno-activist, romantic idealist, who never quite left the sixties, even though I became quite successful in the Internet space.
My business philosphy is different now than when I toiled in the bigco world. About a decade ago I experienced a life-altering epiphany: I was sacrificing my personal life and health to feed a corporate monster.
More...
Categories
- Art (1)
- General (228)
- New Technologies (9)
- Politics (7)
- Strange (1)
- videos (4)
- Windows Annoyances (1)
Tag Cloud
aberdeen proving grounds ASP.Net Barack Obama cell phone connectors cell phone standards CodeIgniter Facebook Fun Google GTD Hillary Clinton homeland security Javascript libraries Jeff Pulver John Edwards John McCain joppatowne jQuery Marketing Microsoft Music music videos nomadic workers personal branding political blogs Politics programming Ron Paul Sarah Palin social identity SocialNetworking spy high Twitter us politics videos Warning Signs WordPress WordPress 2.3 WordPress category to tags WordPress tag clouds WordPress tagging working alone Yahoo YouTube Zoho
How to use tagging in WordPress 2.3
Built-in native tagging support is a great new feature of WordPress 2.3. It is worth updating your WordPress installation for this feature alone.
There’s little information, however, on how to implement tagging in your WordPress blog, especially if you created your own templates or rely on a template created by a third-party designer.
To save others the time I spent figuring it out, here’s a short tutorial on how to use the new WordPress 2.3 natural tagging feature.
Working with tagging after the update
There are a couple of things you must do to enable tagging after you have updated your blog to version 2.3.
Convert categories to tags
Since tags are more precise than categories, I recommend that you convert your categories to tags. Warning: Once you convert categories to tags, you can’t get the categories back.
WordPress provides a one-click conversion: From the Dashboard, click on “Manage”, then “Categories”. Find the “category to tag converter” link below the list of your categories and click on it. Ignore the checkboxes on the next screen and continue until all your categories are converted to tags.
Edit tags
Category terms may not make good tags, so you may have to edit the tags. WordPress 2.3 doesn’t provide a tag editing mechanism similar to the Category editing form so you have two options: Edit the database tables themselves (not recommended!) or editing each individual post (impossible if you have many, many posts). I sense a plug-in opportunity here!
How to tag each post
You enter one or more tags for each post in a new field added to the “Write Post” form. It’s below the text entry field.
Tag terms may be one word or multiple words, separated by commas. I’ll leave it to you to formulate a tagging strategy, but here’s a suggestion: Choose tags that will look good on Technorati.
How to add a tag list to each post
Two new template tags were added in WordPress 2.3. I’ll cover the tagging list template tag here (and the tag cloud template tag below).
A new “the_tags” template tag allows you to insert a list of tags anywhere you want in your post template. Most people will place the tag list at the bottom of each post, inside The Loop (look at the bottom of this post).
The template tag has three arguments:
< ?php the_tags('before', 'separator', 'after'); ?>
“, or nothing “”.
Here’s what my the_tags looks like:
< ?php the_tags('Tags: ',', '); ?>
How to add a tag cloud to your sidebar
The second new WordPress 2.3 template tag is “wp_tag_cloud“.
This one has more arguments, and requires a little trial and error to make it look right.
< ?php wp_tag_cloud('smallest=8&largest=22...'); ?>
Here’s the values I used to create the tag cloud in the sidebar on the left:
<div class="tagcloud">
< ?php wp_tag_cloud('smallest=8&largest=22&unit=pt'); ?>
<div>
I created a new style, “tagcloud“, and applied it to the div enclosing the tag cloud. The style centers the list and colors the anchor tags. Here’s the style:
.tagcloud {
line-height:1.1;
text-align:center;
}
.tagcloud a {
color: #444444;
text-decoration: none;
}
.tagcloud a:hover {
color: #aa0000;
text-decoration: underline;
}
Native tagging is a great addition to a WordPress blogger’s tool chest. I encourage everyone to use it.