Ultimate Tag Warrior (F)AQ’s

This is mostly a placeholder page just at the moment (; . I’m going to fish through the existing comments looking for particularly useful questions, but for the next little while, it’ll be a bit on the sparse side.

The idea is, if you ask general questions in the comments, I’ll add ’em to this page in Question/Answer format.

General Subject Areas

  1. Formatting
    1. Tag Archive Page Titles
    2. The Sidebar Tag Thing
  2. URL Rewriting
    1. It’s broken!
  3. It’s Broken!
    1. The problem on line 246 of functions.php


Tag Archive Page Titles

tinyau asks: Is there any function to get the tag name of the current tag archive page so that I can display the heading like ‘Posts tagged with xxx’?
is the best way of doing that. It’ll display “Tag” if there’s one tag, and “Tag and Tag2? for two, and “Tag, Tag2 and Tag3? for three or more. (And “Tag or Tag1? if it’s an “or” thing.

The Sidebar Tag Thing

Philippe and Michael ask: How can I get the graph that’s in the sidebar
‘weightedlongtailvertical’ is the magic word to get the graph to display; nevermind the empty in the middle, and 10 is the number of items to display.

URL Rewriting

It’s Broken!

People ask: Arrgh! URL Rewriting doesn’t work!
(That’s more a statement than a question, but you get the general drift)
It’s.. uh.. magic.

Sometimes, manually adding the rewrite rules before the WordPress generated rules can help.
(That’s not very useful…)

It’s Broken!

The problem on line 246 of functions.php

On the Options > Tags page, you get this error:

Fatal error: Cannot access empty property in /wherever/wp-includes/functions.php on line 246

This is a bug in wordpress: http://trac.wordpress.org/ticket/1708

What you need to do, is open up the file with the error (wp-includes/functions.php); and replace line 246

if ( isset($cache_settings->$setting) ) :


if ( isset($cache_settings->setting) ) :

($setting looses its $.)

48 thoughts on “Ultimate Tag Warrior (F)AQ’s

  1. found it! but is it possible to change /tags/mycooltag/feed/rss2 to just /tags/mycooltag/feed/ ?

    and if, how do i do that?

  2. oskar,

    You’d need to do some tinkering with URL Rewriting.

    URL Rewriting uses magic!

    This is an educated guess at the rule you need to add:

    RewriteRule ^tags/?(.*)/feed/?$ /index.php?tag=$1&feed=rss [QSA,L]

    (could be RewriteRule ^tags/?(.*)/feed/$ /index.php?tag=$1&feed=rss [QSA,L])

    You should put it in your .htaccess file, above the wordpress generated rules.

  3. What an excellent plugin Christine. I was wondering (and I did check the FAQ and support forums) how can I edit the styling of “The Sidebar Tag Thing”?

  4. David,

    The whole thing is wrapped in a <div class="longtailvert">; so you can use the .longtailvert CSS class to change things like the fonts; and the colours are taken from the Options > Tags page (Making this configurable on a per-list basis is on my todo list).

    Will you be able to do what you want within those confines, or are you wanting to do something different?

  5. I’m not quite sure yet, but it sounds like what I’m looking for ( I’m a bit indecisive 😀 ), but it sounds about right. Thank you so much for the amazingly fast response.

    I will let you know either way, once I tinker with it a bit.

    Thanks again!

  6. I’m really just looking to duplicate the look of what you have in the sidebar now, the blues fading accoring to the popularity of the tags, but have my own color scheme. Nothing too crazy as your implementation is flawless. I’d just love to customize it a bit to better fit a new theme I’m working on.

  7. Christine,

    I downloaded your example from the front page of the Ultimate Tage Warrior page and located the .longtailvert section within your CSS, my question is where do I find that in my plugin? I apologize if this is a simple, stupid question but I am relatively new to code and the like.

  8. Christine I tried posting this in the forums, but I’m not sure how often it’s used so I’ll try asking here. I have a few questions. I’ll format in bullet points to make them easier to answer for anyone that might be able to help. If you’d like to take a look at my website it is davidbabylon.com. Any help would be greatly appreciated;

    1. How can I get the tags to show up directly underneath the post title and date as opposed to below the post content itself? For instance;

    A Look Inside King Kong Published by David Babylon November 3rd, 2005 in Geek, Movies. Author, date & Categories
    I’d like the tags to show up here just before the content begins
    Content content content.
    This is where the tags currently show up, and I’d like them up above.

    2. Is there an expanded FAQ or comprehensive userguide that I can read that better explains the “Automatic Tag Link Inclusion” section in the tags options? For the most part I haeve no idea what each option does, and I have tried looking for a “user manual” but have been unable to locate anything that fully explains what each option in the options section does. For example; Format for primary tag links – I have no idea which area this affects – let alone what each of the options in the pull down menu do. I’d love to have an explanation (for the novice WordPress user) detailing each option and explaining what they do.

    3. I noticed included in Ultimate tag Warrior were images or icons such as a Flickr icon and Technorati icon. How and where would I implement these?

    Also, How can I increase or decrease the number of tags shown in the “Sidebar Tag Thing”.

    Thanks in advance for anyone who might be able to help me out.

  9. 1. Instead of using the automagically included tag lists; you’ll need to add template tags to your theme.

    Between the title bits, and the content, add

    <?php UTW_ShowTagsForCurrentPost(“commalist”) ?> (To get a comma separated list)

    2. Arrgh! I need to add that to the help (: (In the Manage > Tags and Options > Tags pages, at the top of the pages there are links to “local help” which is basically the help files that come with the plugin; and a couple of links into my site as well)…

    Basically; the primary and secondary tag links is an easy way to get tags to appear at the end of your post without needing to make theme changes. The Format option determines how each set of tags look. (Originally, one set of tag links displayed local tag links; and the other showed a set of links to the corresponding technorati pages).

    There’s a list of the formats, along with a little example here: http://www.neato.co.nz/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-help-themes.html#predefinedformats

    3. In that list of formats, you’ll see that there are a few with “icon” in their name (iconlist, htmllisticons and commalisticons). If you use one of those formats, then a set of icons will display. From the Options > Tags page on the admin side, you can pick which icons you want to include/exclude.

    (4.) UTW_ShowWeightedTagSet(“weightedlongtailvertical”,””,27)

    27 is just an example (: You can pick any number you’d like. For pretty much any UTW_ShowXXX() function, the third parameter is the maximum number of items to display.

  10. it generates icon for every tag christine, the way u told me. wat i want is [icon]: tag1, tag2.
    just icon instead of technorati tags: label

    btw did u check my header, i tried calling tag cloud in my header. its too cool. been getting lot of emails abt how i have done it.

    thx again

  11. Hmmm..i think i have a problem with the tag thingy…i cannot find the code snippet where the tags are shown in each post! I found the following though in theloop.php which does not seem to work because i get neither comma separated tags nor the “Tags:” caption in front of them! What is wrong?
    the code is :
    Tags: .

  12. Awesome plugin. I’m still poking around with all the features. I like the tag list with the icons. But the zniff.com link seems to be the only one that opens in a new window. By the way, thank you for putting this plugin together. 🙂

  13. Actually I liked how it opened up in another window. I’ve changed the other links to work like the zniff link. Good stuff there, Christine. Tks again 🙂

  14. Hey, your plugin looks excellent. I reviewed several and found this to be the best among them! Kudos!

    However, I was unable to figure out how to make a page which shows all posts tagged with a particular tag. e.g. – i want that http://www.mysite.com/tag/help should show all posts which have been tagged ‘help’. I know it is possible, since I saw that on your site. And, I know it should be plain simple. I am just not able to find the magic yet. Forgive me for my dubmness!


  15. ohhoo…
    I found the reason:
    options->Automatically include primary tag links chosen,
    Automatically include secondary tag links

    in fact only one is enough.
    Thank you for your perfect WORK.

  16. Hi – I think I already said this is one hell of a plugin and so elegantly written and constructed. I may have missed this when I searched but is there a function to return the ‘tag’ name(s) that does not echo so it can be called in another php function? And – if not – any chance you could add that in for the next update…?
    Please give my love to my favourite country.

  17. It requires trickery! (:

    in the ultimate-tag-warrior-core.php; there’s an UltimateTagWarrior class which is filled with delicious API-type goodness.

    There’s a variable named $utw which is an instance of the UltimateTagWarrior class that you can use to do non-display type stuff.

    But basically….(I’m assuming you’re passing in a postid in some form or other; but really, it doesn’t matter..)

    function someFunction($postid) {
    global $utw;
    $tags = $utw->GetTagsForPost($postid);

    $tags is an array of tag names as stored in the database (it has underscores and such displayed where spaces would be)

    To get the pretty version of a single tag you want

    foreach($tags as $tag) {
    $prettytagname = $utw->FormatTag($tag, '%tagdisplay%');

  18. Hi Christine!
    I tried it for some time now to get the UTW pugin running with the url rewriting, but it won’t work. I would like to use website-url/tag/ (the default value for UTW and Jerome’s Keywords). So I deactivated Jerome’s Keywords and activated URL rewriting in the UTW Options. I re-saved the permalink-options of WordPress as well (I think this was necessary with JK), but no success.

    I always get a 404 error when clicking on a tag with the new url. Any ideas I could do about it?


  19. Hi Christine,
    nope, there’s nor a .htaccess in my blog root neither in the webspace root. i created one in the blog root and one in the webspace root and chmodded it to 777. i resaved the UTW options but nothing was written in these files.

    i am wondering how it worked with jerome’s keywords because it seems i never had a .htaccess. perhaps something with mod_rewrite module of apache?

  20. Hi Christine,

    I’m having trouble with the tag rewrite. It seems to be using the index.php, but will not show the posts that match the tags. I’ve activated the tag rewrite in the options, and moved the rewrite up to the top as in the faq.

    It just says “Sorry no posts were found”. Any ideas? Thanks!

  21. Morning Christine
    I’m not that knowledgable about RSS/Atom b ut I was hoping to create a feed (needed for another site) of just a single Tag. One of the comments above stated I can use ../tag/tagname/feed/rss2 – which does seem to work but actually just feeds in ALL posts from all categories/tags. Is it possible to limit a feed to a single tag please?
    Thanks – andy

  22. Nice plugin, but eithe rI’m misunderstanding its purpose or its not doing what it’s supposed to. All my tags point to Technorati out of the box. I want them to replace the categories and work locally with the blog – Technorati tags I can get in another way.

    But any tag post I make becomes a Technorati one and there doesn’t seem to be a setting anywhere in the admin section to change that. Is there anything in the code I should activate or change? I run WP 1.5.2 and I’ve tried running the three plugins seperately and in various combinations. The plugin resides in a sub-directory.

  23. I´m so thrilled about using your pluging but it totally breaks my WP 2.0 (and WP 1.5.2).

    This message displays the moment I activates the plugin:

    Warning: main() [function.main]: open_basedir restriction in effect. File(/ultimate-tag-warrior-core.php) is not within the allowed path(s): (/home/web/wse96458:/var/tmp:/usr/local/lib/php) in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 12

    Warning: main(ultimate-tag-warrior-core.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 12

    Warning: main() [function.include]: Failed opening ‘ultimate-tag-warrior-core.php’ for inclusion (include_path=’.::.’) in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 12

    Warning: main() [function.main]: open_basedir restriction in effect. File(/ultimate-tag-warrior-actions.php) is not within the allowed path(s): (/home/web/wse96458:/var/tmp:/usr/local/lib/php) in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 13

    Warning: main(ultimate-tag-warrior-actions.php) [function.main]: failed to open stream: Operation not permitted in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 13

    Warning: main() [function.include]: Failed opening ‘ultimate-tag-warrior-actions.php’ for inclusion (include_path=’.::.’) in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 13

    Fatal error: Class ‘UltimateTagWarriorCore’ not found in /usr/home/web/wse96458/inverterad/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior.php on line 16

    I´m using 2.8.9 but it happened to 2.8.7 aswell. In fact it has never worked for me.

  24. Hi Christine,

    Great plugin, thanks for making it. I have a question.

    On the front page of my site, I don’t show tags on posts. On the “post” page (single post / permalink page), I have the tags for the displayed in the sidebar.

    Will Technorati pick up the tags, or do I have to put them in the body of the post? If that’s the case, can I make them invisible to users, and still have Technorati pick up the tags?

  25. Firstly, I *love* this plugin. The only issue I’ve had is that tag links show twice in the content page. I’ve only got primary tags selected as per a prior post on this issue, but they still display two if I have either primary or secondary or both. If I select none, none show.

    Any ideas?

  26. Nice! …but how can I get a feed for “tag1+tag2”. It would also be nice to have to have more clowds presenting the left number of combinations when you browse a tag. A bit like when you click through the delicious tags.

  27. Hi Christine,

    Firstly – thanks, this is great.

    Secondly – this is fantastic!

    It has taken me a while to solve my own problem of getting the second set of tags to point to technorati – it was a lot of trial and error, but realised that I had to set the “base format for secondary tag list” in the options to be technoraticommalist.

    Still it is only my third day with wordpress, let alone UTW!

    thanks again.


  28. Hi, I like your plugin very much and I would love to use it when…Moblogging.

    In short, could you write a line of code or two to make a function that scans the posts for “somenthing between double Quotes”.
    That are the tags in my post-by-mail. They should come in the tag-table and be used with all the other functions you developed in UTW.

    PS. I wrote an short article about this idea, it is to find on
    http://www.sponsoredbythewind.com/wordpress/?p=306 or

    Please reply to me by email, as I’m not very often connected to the Internet. Most of the time only by email.


  29. Thanks so much for this great plugin! 🙂 It was pretty painless to install and get working.

    A few questions:
    – if I have the tags pointing to my site eg. http://www.jenleheny.com/tag/books rather than to say Technorati itself then will Technorati still pick them up or should I really have them go to Technorati for optimum linkage back to me? I assume even if they don’t go to Technorati having the tags there will be good for search engines.

    – should I bother going through my archives (around 100 posts) at my leisure and updating them? Is there a big enough benefit to bother doing this?

    Again, thanks for all your work! 🙂


  30. a great plugin, using it already on 4 blogs 🙂 Thx a lot!!!!

    Now i have a small Eroor 404 problem: I have installed under http://www.gamersliving.com/gblog/ UTW too. As i did successfully under http://www.gamersliving.com/wowlog/.

    Its strange, but it wont simply work. Example:
    Error 404. If i take a look into the table the tag is in there.

    Here it works as expected:

    Could it be the problem, that i use two wordpress installations on the same domain? Btw, both wordpress installations are using different databases.

    Does anybody had similar problems?

  31. and since i do not know where to post bugs (isnt there a UTW forum?): If you use german umlauts as ae (ö), ue (ü),… the plugin produces a heavy error in your RSS Feed.

  32. sorry for this comment-spamming… i have got it wrong (different problem)… correct is that there is a heava RSS feed error if you use a tag like this: “Word1&Word2” = “&” is very bad 🙂

  33. Great plugin! I know you are bombarded by questions but I seem to be unable to use backward engeneering to strip the plugin of all unnecessary files. All I want is the tag function in the write page of WP and a tag cloud. Any chance of releasing a stripped version in the near future?

Comments are closed.