Tag, You're It!

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.

16 Comments

  1. Posted March 25, 2005 at 1:10 pm | Permalink | Reply

    Nice. /archives/tag/something/ looks so much shorter than /archives/category/something/.

  2. Posted March 26, 2005 at 2:29 pm | Permalink | Reply

    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).

  3. Posted April 1, 2005 at 6:53 pm | Permalink | Reply

    After listening to Clay Shirky, I want to tag everything now. :lol:

    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!

  4. Posted April 1, 2005 at 7:49 pm | Permalink | Reply

    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.

  5. Posted April 1, 2005 at 9:55 pm | Permalink | Reply

    I’m unsure what to do after you activate the plugin…thanks for clarifying in advance, Nick. You rock!

  6. Posted April 1, 2005 at 11:50 pm | Permalink | Reply

    Once you activate, you should see a new section on your Write Post screen for tagging a post.

  7. Posted April 2, 2005 at 2:18 am | Permalink | Reply

    I see that. It’s just the changing all references to the word “category” in my theme to “tag”. Text or PHP stuff?

  8. Posted April 2, 2005 at 2:22 am | Permalink | Reply

    Also, if you put more than one tag, did you just put a comma in between? Can you put spaces in a tag?

  9. Posted April 2, 2005 at 9:30 am | Permalink | Reply

    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”.

  10. Posted April 2, 2005 at 9:52 am | Permalink | Reply

    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?

  11. Posted April 2, 2005 at 9:58 am | Permalink | Reply

    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”.

  12. Posted April 2, 2005 at 2:24 pm | Permalink | Reply

    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*

  13. Posted June 6, 2005 at 10:37 am | Permalink | Reply

    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!

  14. Posted June 6, 2005 at 11:21 am | Permalink | Reply

    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.

  15. Posted June 6, 2005 at 11:49 am | Permalink | Reply

    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!

  16. Posted June 6, 2005 at 12:32 pm | Permalink | Reply

    Better yet, I have a list of every plugin I use here.

4 Trackbacks

  1. [...] « RSS Feeds for beginners Tagging within WordPress MtDewVirus turns to tagging, as opposed to using categories. If it’s really that si [...]

  2. By ClioWeb | Home on April 5, 2005 at 9:55 am

    [...] 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& [...]

  3. [...] 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&#8 [...]

  4. [...] ? ?? ?? ?? ?????. ??? ????: Weighted Categories -via MtdewVirus Comme [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*