How To: Adding Tags to Your Theme for WordPress 2.3
September 16th, 2007
It looks like the next version of WordPress, known as WordPress 2.3 is due to be released on September 24th, 2007. This is less than a couple of weeks away still, but the anticipation for the availability of tags has already begun.
Currently, all existing WordPress themes will not have support for the newest tag features, because it won’t technically exist for a few more weeks. Once the new version of WordPress is released, it is unlikely that to many theme owners will be adding the necessary code to their themes, meaning you will probably have to do it yourself if you want to take advantage of the new tagging features.
Aiming for Independence has posted an easy way on how to add tags to your WordPress 2.3 theme. This will also apply to adding tag clouds to your posts or within your sidebar. In order to display your tags for your posts, you’ll just want to paste this code wherever you want the tags to be displayed within your loop:
<?php the_tags(); ?>
I personally prefer tags over categories, so in my case, I would display my tags where my categories would normally be. Because I currently use Ultimate Tag Warrior, I will instead be replacing the UTW tag with this one above.
To see more about the new tagging process, or more about the new tag clouds available with WordPress 2.3, I recommend checking out the above post from Aiming for Independence.











It was about a week away when you wrote it.
I’m excited to see the tags get implemented into WordPress, but unfortunately the interface for adding tags isn’t going to be as slick as the Simple Tagging plugin. That shows a list of matching tags as you type making it easy to find the tags you’re looking for in real time.
Bah, I guess you’re write. I lose track of the dates and stuff on the weekends I guess!
Do you use the simple tagging plugin? I use UTW and have been very happy, but it doesn’t recommend tags for me. I currently have it set up to use my tags as keywords, so I tend to use a bunch of weird tags for my posts for that reason.
I had switched to the Simple Tagging plugin from UTW and absolutely love it. The find-as-you-type is priceless, and recommending tags from your existing list of tags works great. It’s way better than UTW and much more lightweight. I won’t switch to the WordPress tagging system until someone makes a plugin to recommend tags and for the find as you type.
Ryan – If I remember correctly, you use blogging software instead of writing from the WordPress Write page. Is that correct?
If so, how does the Simple Tagging plugin work with that? Does it add recommended tags automatically or do you have to go in after you publish a post and edit it to add the tags the simple tagging plugin suggests?
Unfortunately the software doesn’t work with it, and we always upload our posts as drafts before posting them. Then we go and add the tags and whatnot. I’ve been in contact in the head Live Writer developer, and I’m hoping I can persuade him to implement tag recommendations and auto-complete to Live Writer.
Oh yeah, but there is a way to make Live Writer support the WordPress 2.3 tagging system. It requires a registry hack at this point though. Unfortunately it doesn’t check the tags against the existing ones, so you may have one called Vista and another called Windows Vista. That’s the problem in my opinion.
Ryan – Very interesting! Thanks for the information. I’m still trying to decide how I am going to handle tags (use WordPress ones, use Simple Tagging plugin, or keep UTW which has worked well for me over this past year).
I put together a plugin that provides recommended tags for WordPress 2.3: http://cybernetnews.com/recommended-tags-for-wordpress/
I haven’t posted about it yet, but will be later today.
Hmmm, can I break the news then before you post it? Just kidding!
I think you may have just made up my mind. WordPress 2.3 tags here I come!
I’ve got a new version that I’m working on that creates on options page in the Admin screen so that you don’t have to edit the PHP file, and it also has the type-ahead autocompletion feature. I’m guessing that should be up tomorrow.
I’m waiting a little bit to upgrade to WordPress 2.3, but I will be writing a post about your plugin here soon.
Thanks for contributing to the WordPress community!