Since I started using Flickr earlier this month, I’ve falling in love with tags. Using categories in WordPress has always been a burden, so made the move to rid the site of them. Using tags is much better way to classify things in my opinion. You can view a heat map or full list of the tags used here at MDV.
While looking for a plugin to do the job I found quite a few, but they were all done wrong. Just bout every tagging plugin out there for WP used the meta data to store tags. I just didn’t get it. All of the functionality is already built into WP with categories, so why not just use what is already there?
After much searching I finally found a solution. All it takes is a simple edit to post.php and one plugin file.
Nice.
/archives/tag/something/
looks so much shorter than/archives/category/something/
.LikeLike
[…] « RSS Feeds for beginners Tagging within WordPress MtDewVirus turns to tagging, as opposed to using categories. If it’s really that si […]
LikeLike
Indeed… I wish I could sort my blog out by tags… I think I should move on from blogger and perhaps try other weblogging apps.
I got a nice script in my ‘customize’ section at my blog. It generates automatic technorati/flickr/wikipedia tags or google searches by typing words in the Flickr format (separated with spaces).
LikeLike
After listening to Clay Shirky, I want to tag everything now. š
Nick, can you write something up about how you did all this? How does posting change afterwards? I’m scared to undertake something, but I can see how much better it would be to tag posts rather than categorize them. Kind of like Gmail labels, too.
If I’m thinking like this, and you were thinking like this, I’m sure there’s more people that’d be really grateful if you could write some sort of article. š Thanks Nick!
LikeLike
Actually, it’s really easy.
Download the plugin and rename it to .php
Add
do_action('before_post', '');
to the top of post.php somewhere.There are two configurable options inside the plugin:
$post_tag_separator = " ";
$post_tag_override = true;
I chose to set the $post_tag_seperator to “,” so that I could have spaces inside my tags.
Once this is done, just activate the plugin. Now when you get to the Write Post screen you’ll have a text area underneath the main post area where you can type in tags. If the tag hasn’t been used before, it will be added to the list of “categories”. There is a section inside the plugin also to disable the regular comment list on that Write Post screen.
Oh…and you’ll obviously want to change all references to the word “category” in your theme to “tag”.
Let me know if anything doesn’t make any sense and I could write up a true post on this.
LikeLike
I’m unsure what to do after you activate the plugin…thanks for clarifying in advance, Nick. You rock!
LikeLike
Once you activate, you should see a new section on your Write Post screen for tagging a post.
LikeLike
I see that. It’s just the changing all references to the word “category” in my theme to “tag”. Text or PHP stuff?
LikeLike
Also, if you put more than one tag, did you just put a comma in between? Can you put spaces in a tag?
LikeLike
Anything that outputs “Category” to your site, you’ll most likely want to change….I’d just do a search for that word in the theme folder.
It depends on what you set the $post_tag_separator variable to. The default is left as a space. I changed mine to a comma, so that I can put something like this in that post tags area…
quickie,site news,web design
This would give me three tags: “quickie”, “site news”, and “web design”.
LikeLike
Alright, so don’t touch the template tags. Cool.
I guess the last thing I should ask you is about the rewrite rule. Where did you change that up?
LikeLike
By the way…feel free to hit me up on IM anytime.
Under Options->Permalinks, instead of using “archives/category” I changed it to “archives/tag”.
LikeLike
Thanks Nick, I’m definitely going to take you up on that soon. The thing is that I’m not using the category structure tag. *scratching head*
LikeLike
[…] press, I’ve been curious about tagging my weblog entries instead of categories, like MtDewVirus has been doing. That’s still a little ways down on my To-Do list, but I& […]
LikeLike
[…] need to trawl through my “shell script” category. With this in mind, I found this post. It really was simple, and took me about a minute to sort it out, and now it […]
LikeLike
I really like the tagging system you’ve implemented. I’m now in the process of switching from MT to WP, and I figure as long as I’m going to all the trouble of converting my templates, I might as well switch from traditional categories to tags as well.
Only problem is I can’t for the life of me figure out how to display a “cloud” list of the tags on my archives page (like you did). I can’t seem to accomplish it with either wp_list_cats or the_category.
The “heat map” is probably too advanced for me; I don’t need that. But I’m afraid a normal list will take up too much vertical space, so I’d really like to do the cloud thing. Can you clue me in?
Thanks!
LikeLike
I’m not sure what you mean by a “cloud list”. I’m using a heat map plugin and also just a simple list on the 2 different pages.
LikeLike
Nick,
Sorry, I’m not down with the lingo. Del.icio.us, since the upgrade yesterday, refers to your “heat map” display as “cloud”.
Got a link to that heat map plugin?
Thanks!
LikeLike
Better yet, I have a list of every plugin I use here.
LikeLike
[…] ? ?? ?? ?? ?????. ??? ????: Weighted Categories -via MtdewVirus Comme […]
LikeLike