WordPress plugins, themes, tips and hacks

Jerome’s Keywords broke during upgrade, now using Simple Tagging

March 24, 2007 – 10:59 pm | by Miriam Schwab

I was using Jerome’s Keywords for tagging posts, and all was working fine until I finally upgraded from 2.1.1 to 2.1.2 (yes, I know, I should have done it a long time ago, but upgrades scare me).

The upgrade went fine, but I noticed that when you clicked on a tag, it takes you to a 404 error page. I searched the web to find out what was going on, and it seems that Jerome’s Keywords has a bug that makes it problematic with WP 2.1. He’s released a beta of this plugin that is compatible with WP 2.1, but I definitely don’t want to work anything unstable after this tagging fiasco. Ultimate Tag Warrior is also not an option, since it seems that the tagging breaks if you approve a comment. Yikes.

Addendum: Since I wrote this post, Chris from Solo Technology wrote a comment saying that Ultimate Tag Warrior works fine with WP 2.1. This is good to know since there are a lot of plugins for WordPress that are based on Ultimate Tag Warrior and add extra functionality to your blog. In the meantime, I’m still using Simple Tagging.

I found the solution: the Simple Tagging plugin. This is a brilliant plugin that does more than just tag, and has many great features that Jerome’s Keywords does not. Once you’ve activated the plugin, it creates a new toolbar called Tags, under which you have a few options: Tag Options, Manage Tags, Not Tagged Articles, and Import Tags. There are so many options on these pages, such as batch changing, adding, or deleting tags, feed options, meta options, tag cloud options, identifying articles that haven’t been tagged, and importing tags from Jerome’s Keywords or the Ultimate Tag Warrior Plugins.

Features:

First of all, this plugin displays the tags you’ve already used in Write>Post so that you can easily select tags for a post. It also auto-completes for you if you start typing a tag. You can set it up to add tags to the meta data on a page, and have related posts based on tags appear. This removes the need for two separate plugins for meta data and related posts.

It has an import function for importing tags from Jerome’s Keywords which works smoothly, and you can create a tag cloud.

How I installed it and tweaks I needed to make:

First I imported my tags from Jerome’s Keywords. This went smoothly, but I was still getting 404 error pages when I clicked on a tag. I fixed this by going to Tags>Tag Options, and under General Options changing the Tag search base from “tag” to “keywords” and then back to “tag” again. For some reason, this resolved the issue.

Then I pasted the code for displaying the tags in my home, index, search and archive page templates. I also pasted the code for displaying related posts. This worked fine.

Finally, I pasted the code for the tag cloud in my sidebar. This didn’t work quite so well, and needed some tweaking. First of all, if you want to style your tag cloud, make sure to paste the following into your template page:

<?php if (class_exists('SimpleTagging')) : ?>
<ul id ="tagcloud"><?php STP_Tagcloud(); ?></ul><?php endif; ?>

Then, you need to add styles to your stylesheet. There is available CSS on the Tag Cloud page of the plugin, which I used, but it created a list of tags rather than a cloud. So first I went into the WordPress administration, and went to Tags>Tag Options, and under Tag Cloud I changed the “Cloud tag link format” to

<a class="t%scale%" title="%tagname% (%count%)" href="%fulltaglink%">%tagname%</a> so that it wouldn’t be based on <li>. Then I changed the CSS to the following:

ul#tagcloud { padding:0; margin:0; text-align:center; list-style:none; }
ul#tagcloud { display:inline; color:#FF6600; background: none; padding: 0;}
ul#tagcloud a, ul#tagcloud a:link { text-decoration:none; }
ul#tagcloud a:hover { text-decoration:underline; }
ul#tagcloud a.t1 { font-size: 80%; }
ul#tagcloud a.t2 { font-size: 110%; }
ul#tagcloud a.t3 { font-size: 150%; }
ul#tagcloud a.t4 { font-size: 180%; }
ul#tagcloud a.t5 { font-size: 200%; }
ul#tagcloud a.t6 { font-size: 220%; }
ul#tagcloud a.t7 { font-size: 250%; }
ul#tagcloud a.t8 { font-size: 280%; }
ul#tagcloud a.t9 { font-size: 310%; }
ul#tagcloud a.t10 { font-size: 330%; }

These styles did the following: it made sure the text was the same orange as on this blog; and I changed the percentages so that they were more in line with what looked ok to me. Finally, to center the whole thing, I went into my sidebar template and wrapped the whole thing in a centered div, so that the code there looked as follows:

<h2>Tags</h2>
<div align="center">
<?php if (class_exists('SimpleTagging')) : ?>
<ul id ="tagcloud">
<?php STP_Tagcloud(); ?>
</ul>
<?php endif; ?>

This is a really handy plugin, and I recommend checking it out.

Simple Tagging plugin>>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
  1. 18 Responses to “Jerome’s Keywords broke during upgrade, now using Simple Tagging”

  2. By Susan on Mar 25, 2007 | Reply

    Simple Tagging is great, but I had struggled to make a tag cloud following instructions on the plugin’s home page.

    Following your tips I had a tag cloud within minutes.

    Thanks!

  3. By Miriam on Mar 25, 2007 | Reply

    Hi Susan,

    I’m so glad that I helped you! I’ve gotten so much help from others across the web who have taken the time to write tutorials, that I’m glad I’ve finally been able to give back.

  4. By Chris on Apr 1, 2007 | Reply

    The UTW issue you mentioned:

    Ultimate Tag Warrior is also not an option, since it seems that the tagging breaks if you approve a comment. Yikes.

    Was fixed a couple months ago.

  5. By Miriam on Apr 1, 2007 | Reply

    Hi Chris,
    Thanks for the update. So does that mean that UTW works fine with WP 2.1?

  6. By Chris on Apr 1, 2007 | Reply

    The current version does, yep. :-)

  7. By Miriam on Apr 1, 2007 | Reply

    Chris: I’ve updated this post with an addendum based on your comment so that people know that UTW does work with WP 2.1. Thanks again for your input!

  8. By Heidi on May 26, 2007 | Reply

    It’s working great for me, except that the individual pages for tags don’t show up. It just goes to a tag cloud page over and over again. Any idea what I might be doing wrong?

  9. By Christian on Sep 1, 2007 | Reply

    Thanks for the update, I’ve had trouble figuring out how to change the values for min. and max. scaling within the settings, nothing I tried worked, and now, with your lines added to CSS, it looks just like I want it to. Thanks

    A question though, how does the jump between t150, t133 and so on, work ?? Why those numbers ??

  10. By Miriam on Sep 1, 2007 | Reply

    Christian - Glad the CSS helped. The numbers are really just the ones that worked best for me. I tried a bunch of other numbers, but I liked the way this looked the best. You can change the numbers however you like, though.

  11. By Christian on Sep 1, 2007 | Reply

    I mean, as I saw in the “view source” the class id were these numbers, I’m just wondering where they are from, is there a table of numbers where I can reconfigure them all at once, or do I have to do that as I go along.

    As of now I only have numbers for topics with 2, 3, 4, 6 and 7 replies. What will happen to the topic with 5 replies or 8+ replies ??

  12. By Christian on Sep 1, 2007 | Reply

    oh, one more thing, would you know where I can set the slignment to justify ?? So it’ll fit with my category cloud..

  13. By Miriam on Sep 1, 2007 | Reply

    Christian - the class ids are generated by the plugin, as far as I can tell. I don’t really know what you mean by replies, but here’s the line from the code above where you can change the alignment to justified (I’ve already changed the code, so you can just use it as I’ve written it below):

    ul#tagcloud { padding:0; margin:0; text-align:justified; list-style:none; }

  14. By Christian on Sep 2, 2007 | Reply

    I’ve come across a new problem, as the class ID changes as the amount of tags increase and the use of each tag increases as well.

    For instance, when I fixed this error the class ID for tags used in 4 topics were: class=”t150″

    As the tags and their use increased, the class ID for tags used 4 times changed to: class=”t133″

    And as you can imagine, the result in the tag cloud is that all tags are back to same size again, as there is no ID’s for them in the stylesheet.

    Thats what I meant by, how is the numbers generated, and how do I compensate for that?

    Can I create a range within the stylesheet?
    a.t150 { font-size: 250%; } ??

    Or how do I solve it ??

  15. By Shane on Sep 18, 2007 | Reply

    See how I got it working here:

    http://www.hackosis.com/index.php/2007/09/18/wordpress-simple-tagging-plugin-fix-404-error/

  16. By Miriam on Sep 19, 2007 | Reply

    Thanks Shane - I don’t know why I haven’t encountered those 404 errors on my WordPress installations. Do you know why?

  1. 3 Trackback(s)

  2. May 5, 2007: Navigation - Simple Tagging Plugin : Reformed Geek
  3. Jul 6, 2007: Things I do to optimize and secure every WordPress site and blog » wordpressgarage.com
  4. Sep 3, 2007: Adding comments, related posts and copyright notice to RSS feed » WordPressGarage.com

Post a Comment

Revolution Premium Themes