Tuesday, 01/31/2006
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.
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.
- Set your number of posts to 20 or so.
- Copy your wp-content/index.php file to wp-content/single.php
- 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.
Reference Lookup: Dictionary, Thesaurus, Encyclopedia, & More
powered by PostRef
Dane Morgan wrote this at around evening time:
Filed under:
Blogging, Blogging Tips and News, Plugins, Search Engine Optimization, Tagging, Website Design, WordPress
Tagged With:
Fatal error: Call to undefined function UTW_ShowTagsForCurrentPost() in /home/danem66/public_html/archive/wp-content/themes/gespaa_v2/single.php on line 95
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0