How To Implement Dead Simple Tagging with WordPress 2.0.

First You'll want to get Cat2Tag 2.0.

This WordPress Plugin allows you to treat categories like tags. It places a text entry box under the post edit field. You just type your categories in in a comma seperated list and viola, they are added as new categories.

It also ads an Ajax menu of all categories that already exist in your blog structure.

The authors site seems to have become a parked domain so I'm uploading this plugin here.

Cat to Tag 2.0 Zip File

Download and extract this file. Upload it to your wp-content/plugins/ directory and activate it in the WordPress dashboard -> Plugins.

Next here is a functions.php file I made that replaces the the-category() function with a get_tag_category() function.

All this does is substitute the category display function with a modified version. Instead of inserting a rel="category tag" into the links it will inster rel="tag".

Some may feel that this is not neccessary, b ut I disagree. The standard is rel="tag". So that is what I want to use. I want spiders that only know what rel="tag" means to be able to find my tags.

Here's the file
Category Tagging functions

Download this file unzip and upload to your wp-content/themes/YOUR_THEME/ folder.

Go to your WP Dashboard to the permalinks tab and in the categories text field type /tag.

Thats it. You're done and ready to tag :)

Well...

I would also recomend the following things, but they are not mandatory.

  1. Set your number of posts to 20 or so.
  2. Copy your wp-content/index.php file to wp-content/single.php
  3. Rewrite wp-content/index.php so that it displays nothing but the title, permalink and excerpt of the posts.

You can see this exact system in use right here at danemorgan.com.

If you click over to my tag pages you'll see that they are handeld by index.php displaying the excerpts with the next and previous page links enabled.

If you view source on this page you will see that the tags have rel="tag" in the code.

I'd love to hear your comments on this process, and any complaints, or suggestions are welcome too.

Trackback URL for this post:

http://danemorgan.com/trackback/102
None
Login or register to tag items
 
Posted In
Tagged With
Like this?
Bookmark & Share:
StumbleUpon Submit to Mixx Save to Google Bookmarks Save to del.icio.us
Click, Copy and Link:
<a href="http://danemorgan.com/blog/wordpress/how-implement-dead-simple-tagging-wordpress-20">How To Implement Dead Simple Tagging with WordPress 2.0.</a>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Restrict text by wrapping in [restrict:roles=<comma separated roles>] and [/restrict]
  • Links to specified hosts will have a rel="nofollow" added to them.

  • Highlight terms in this textarea.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Use <fn>...</fn> to insert automatically numbered footnotes.
  • You may link to webpages through the weblinks registry

More information about formatting options

CAPTCHA
Please fill out this captcha to demonstrate your humanity.
8 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.