TDO Tag Fixes WordPress Plugin (0.5)

Download now from WordPress.org!

Requires at least WordPress v2.3 and tested up to WordPress v2.5.1.

This plugin is simply intended as an example of how to implement tag and category intersections. However it has got a bit more feature-heavy recently. Please feel free to re-use the code in your plugin. This plugin is based on information found here.

Version 0.5 enables true 'or' tag intersection when using a category. It wasn't working prior to this (and no-one noticed). Thanks to Joel Giddey for spotting it.

Wordpress 2.3 introduced native tagging support, which is rather nifty.

But did you know that you can display multiple tags in the one archive and even generate a feed for that?

Neat huh? But did you notice that on the generated tag page you see only one tag listed in the header? This function fixes that and displays all tags used to generate that tag archive. It does this by silently modifying the single_tag_title template tag. It'll even work on the RSS feed generated by that page!

What would be also be cool is to be able to intersect categories and tags so you could grab posts with tags from a specific category for example?

With this plugin you can. It's not perfect however. It only allows intersection between a single category and one or more tags. Technically Wordpress should be able to support multiple categories and tags intersections but it didn't work for me in Wordpress 2.3.x and 2.5.

So go to one of your category pages. If your using using fancy permalinks then at the end of the url add "?tdo_tag=a_tag". If your not using permalinks then you can just use "&tdo_tag=a_tag". You must use the tag slug, not the full tag name. You can use multiple tags as above using "," and "+".

This plugin uses this intersection code to automatically modify the built-in tag cloud template tag wp_tag_cloud so that if it is used on a category archive, it shows only the tags within that category. You can then click on a tag in that tag cloud and it will get the posts for in that category that tagged with that tag. (You can disable this and just use the specific template as you need).

This plugin has been downloaded 5,805 times.

Related Posts:

Comments (135)

  1. Philip Yurchuk wrote::


    This plugin is perfect for my needs, however, I cannot get it to work. Using http://URL/category/catname/?tdo_tag=tagname fails. The title is correct (e.g., Music tagged with ‘concerts’). However, the tag filtering never takes place. It always shows the entire category archive. I’m using WP 2.3.2.

    Also, I’m getting the modified tag clouds for categories, even though I set:

    $tdotf_fix_tag_cloud_auto = false;

    I’m not sure what I’m doing wrong. Thanks in advance.

    Tuesday, January 15, 2008 at 12:10 pm #
  2. Mark wrote::


    Oh dear. Looks like $tdotf_fix_tag_cloud_auto isn’t working as I thought. You can try just commenting out the line, like this.

    #$tdotf_fix_tag_cloud_auto = false;

    As for the tag filtering, is there any chance you could give me a link to have a look?

    Tuesday, January 15, 2008 at 2:03 pm #

  3. Thanks Mark, I’ll give that a shot. As for an example, here’s one:

    http://philip.yurchuk.com/category/software/?tdo_tag=job-trends

    You can see it shows everything for that category, not just the one post tagged “job trends”.

    Wednesday, January 16, 2008 at 11:14 am #
  4. Mark wrote::


    How very odd. I wonder if it’s an issue with WP 2.3.2 as I’m still using 2.3.1. What you might try and do is modify the function tdotf_tag_cat_intersect. You can see it’s wrapped by:

    if(isset($tdotf_tag_get_var)) {
      .
      .
      .
    }

    If you try commenting those lines out so we can make sure the code is actually being used.

    Have you modified “$tdotf_tag_get_var”?

    Wednesday, January 16, 2008 at 1:32 pm #

  5. I commented out the if/isset lines as instructed, but that didn’t fix it.

    I had not modified $tdotf_tag_get_var, nor did I comment it out.

    I commented out:

    $tdotf_fix_tag_cloud_auto = true;

    and the tag clouds are now the same everywhere, so that worked – thanks.

    I noticed a couple code blocks that were commented out, but I’m assuming that’s intentional.

    Thursday, January 17, 2008 at 8:49 am #
  6. BossKeyGames wrote::


    Hi, Your plugin is solving a major problem I had. Thanks. But I had a question about URL structure. Instead of having it output the URL as:

    “http://your-blog-uri/category/mycategory/?tdo_tag=tag1+tag2″

    Could it output as:

    “http://your-blog-uri/category/mycategory/tdo_tag/tag1+tag2″

    ??

    In this way, I can change the “tdo-tag” bit to a general keyword for my niche (for example, I have a games site, so a generic word like “fun” or “play” would be appropriate). Then I’d have SEO-friendly (and human-friendly) URLs for these intersections (I’d like them to be links in my menus).

    So the desired URL might be:

    “http://my-blog-uri/category/puzzles/fun/adventure″

    where “puzzles” is the category and “adventure” is the tag that I want to produce an interaction of.

    And similarly,

    “http://my-blog-uri/category/puzzles/fun/adventure+kids″

    would be the intersection of the category “puzzles” with the tag “adventure” AND “kids”.

    (For the record, for SEO, I’m also renaming the category and tag bases to more relevant keywords).

    I’m happy to fiddle the .htaccess if that’s required (but am having difficulty doing so). I just don’t know enough php or javascript to hack your wonderful plugin :D

    Thanking you heaps and heaps in advance,

    The Boss

    Wednesday, March 12, 2008 at 11:09 am #
  7. admin wrote::


    I’m sure there is a nice wordpress way, probably hooking into wp_rewrite stuff… but also I think you can do it with .htaccess easily enough.

    If you stick something like this at the top of your .htaccess


    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^fun/(.*)$ ?td_cat=$1 [L]
    </IfModule>

    It should allow a url like “http://your-blog-uri/category/mycategory/fun/tag1+tag2″ to act like “http://your-blog-uri/category/mycategory/?td_cat=tag1+tag2″.

    I’ve tested this piece of code below and it will redirect “/fun/tag1+tag2/” to “?td_cat=tag1+tag2″.


    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^fun/(.*)$ ?td_cat=$1 [L,R]
    </IfModule>

    But this isn’t exactly what you want. Dropping the R should do the trick though.

    Wednesday, March 12, 2008 at 1:09 pm #
  8. BossKeyGames wrote::


    Thanks for the quick reply! I tried that and it didn’t work for me. It didn’t break anything, just didn’t do the rewrite, and simply returned the 404 page. By the way, I’m assuming you meant “tdo_tag” not “td_cat”. I tried both anyway.

    But I did find this in the Codex:
    http://codex.wordpress.org/Custom_Queries#Permalinks_for_Custom_Archives

    It seems like what I’m after, but not sure where something like that would go (obiously changing the function names etc). I’m thinking the most obvious place is in your plugin somewhere (duh!).

    I tried adding a suitably edited version of the above sample just to the end of your plugin, but that didn’t work either (not that I expected it to).

    (There’s also http://codex.wordpress.org/Function_Reference/WP_Rewrite).

    I think we’re getting closer.

    I also had a look at the Search Permalink plugin:
    http://wordpress.org/extend/plugins/search-permalink/#post-2433

    I think a rejig of that might work also…

    I’m playing around with a few ideas and if anything work, I’ll let you know.

    cheers and thanks again,

    Michelle (The Boss)

    Thursday, March 13, 2008 at 3:40 am #
  9. Dizi wrote::


    this is fabolous thank you.

    Friday, March 14, 2008 at 10:21 am #
  10. Firma Rehberi wrote::


    Thank you very much for your work.

    Friday, March 14, 2008 at 10:21 am #
  11. Web Tasarım wrote::


    This is great

    Friday, March 14, 2008 at 10:22 am #
  12. pepe wrote::


    Hi great plugin, but how to correct or use fixes for

    Wednesday, March 19, 2008 at 6:24 pm #
  13. pepe wrote::


    i mean

    ? php the_tags () ;

    Wednesday, March 19, 2008 at 6:24 pm #
  14. admin wrote::


    Hi pepe, sorry, but the plugin does nothing to the_tags(); template tag. Is there something wrong with it?

    Thursday, March 20, 2008 at 12:37 pm #
  15. Tobias Ross wrote::


    I fixed the problem I was having. I had a custom query_posts

    Can you give some hints if your plug-in calls can be wrapped into the query_posts? I want to set up a static page that and at the bottom grab a set of posts in a category filtered by a tag.

    Thursday, March 20, 2008 at 9:43 pm #
  16. pepe wrote::


    no the plugin is great, i need to use somthing like this
    tdotf_cat_the_tags();

    becouse i need if a sigle post has tags and you choise one of the tags you have to go in tag page with the tags only from category wich the post is. sorry for my bad english

    i found a small solution but a the moment a can’t separate every tag with comma:


    $posttags = get_the_tags(''); if ($posttags) { foreach((get_the_category()) as $category) foreach($posttags as $tag) {

    echo ' cat_ID . '&tdo_tag=' . $tag->slug . '" title="This is single post'.$category->name . ', ' . $tag->name . '">' . $tag->name . ' ' ;} } }

    the problem is if you put comma all tags look like this: tag1, tag2, tag3,

    But I need only: tag1, tag2, tag3

    the last tag3 has no comma

    any suggestions?

    Thursday, March 20, 2008 at 9:50 pm #
  17. admin wrote::


    I guess, something like this might do the trick for you pepe:

    $posttags = get_the_tags('');
    if ($posttags) {
     $num = count($posttags);
      foreach((get_the_category()) as $category) {
       $cnt = 0;
       foreach($posttags as $tag) {
        $cnt++;
        echo ' <a href="'cat_ID . '&tdo_tag=' . $tag->slug . '" title="This is single post'.$category->name . ', ' . $tag->name . '">' . $tag->name . '</a> ' ;
        if($cnt < $num) {
         echo ",";
        }
       }
      }
     }


    Thursday, March 20, 2008 at 11:14 pm #
  18. pepe wrote::


    thank you very much the code is working perfect i sugest you to add id to you plugin

    it has small error i one sign the right code is


    $posttags = get_the_tags('');
    if ($posttags) {
    $num = count($posttags);
    foreach((get_the_category()) as $category) {
    $cnt = 0;
    foreach($posttags as $tag) {
    $cnt++;
    echo ' slug . '" title="This is single post'.$category->name . ', ' . $tag->name . '">' . $tag->name . '' ;
    if($cnt < $num) {
    echo ",";
    }
    }
    }
    }


    Friday, March 21, 2008 at 1:23 pm #
  19. Tobias Ross wrote::


    Has anyone found a way to have tdo_tags and query_posts live together? whenever I use query_posts, to sort or control the number of results on a given page… it breaks the ?tdo_tags= call.

    Friday, March 21, 2008 at 6:12 pm #
  20. sOliver wrote::


    Awesome plugin, really well done.

    Do you think you can add seo-friendly links as well
    or can you tell me how to rewrite
    “?tdo=tag” to “/tag/”

    Would appreciate any help with that!

    Oliver

    Thursday, March 27, 2008 at 12:21 am #
  21. soliver wrote::


    Awesome plugin, thanks a lot!
    Do you think you can add seo friendly url’s or can
    you tell me how to rewrite “?tdo=tag” to “/tag/”?

    Any help is appreciated!
    Oliver

    Thursday, March 27, 2008 at 12:24 am #
  22. Tobias Ross wrote::


    I sorta figured it out, I can pass the sort order in the URL and it doesn’t break the keyword filter!! I only want to sort things in certain categories… and I the tags I need to link in the sidebar are only a subset anyway… so I am hand-coding it anyway them :( , I changed tdo-tags to keyword :)

    /category/rodents?keyword=bunnies&orderby=title&order=asc

    Thursday, March 27, 2008 at 6:20 pm #
  23. admin wrote::


    Hi Tobias Ross, that’s quite neat. I should dump that on readme.txt for the plugin.

    Friday, March 28, 2008 at 1:28 pm #
  24. Tobias Ross wrote::


    ?keyword=bunnies&orderby=title&order=asc

    is not to handy for generating URL’s,

    &orderby=title&order=asc?keyword=bunnies

    also works

    Now if I can just figure out how to create and retrieve groups of tags (States) (Rodents)rats, bunnyies, gophers (Felines) lions, tigers, panthers… I will be styling.

    Friday, March 28, 2008 at 8:22 pm #
  25. Tobias Ross wrote::


    Double drat! All of a sudden tdotf_cat_tag_cloud, and wp_tag_cloud are only returning 11 tags… no matter what I do…

    Tuesday, April 1, 2008 at 8:04 pm #
  26. Toby wrote::


    Mr. Deceased Individual,

    I’m using WP 2.3.2 … I’m getting a very short list of tags back using your plugin, 11, I have it set to 0, I have tried something small like 20 as well.

    When they are both activated sensitive tag cloud gives me the same short list of tags… If I disable tdo tag fixes… sensitive tag cloud returns a big list…

    If I have them both active, sensitive tag cloud returns the same trunkated list…

    I’m trying both of these:

    wp_tag_cloud(‘smallest=8&largest=8&unit=pt&number=0&format=flat&orderby=name&order=ASC&exclude=560,562′);

    The excluded tags are not getting excluded…

    Tuesday, April 1, 2008 at 9:32 pm #
  27. admin wrote::


    I just did a quick look at the code, the code that grabs the tags from posts in a specific category does not exclude tags listed in the exclude tag list. In fact it does no modification on the tag list. So number/include/exclude etc. are ignored. orderby isn’t though (however ‘rand’ is not support). Would this explain your issue? If so I can attempt to fix it.

    As for getting the plugin to work with query_posts… I’d nearly recommend ditching the plugin and using the code for your own work (this was the original intention for the plugin – some example code). The plugin does overwrite the query object so if you try to modify the query object, it’s effect may depend on if it modifies it before the plugin activates or after.

    Wednesday, April 2, 2008 at 4:15 pm #
  28. dizi izle wrote::


    thanks

    Wednesday, April 2, 2008 at 11:35 pm #
  29. toto wrote::


    Help again.

    my custom function is

    function tagger() {
    $posttags = get_the_tags('');
    if ($posttags) {
    $num = count($posttags);
    foreach((get_the_category()) as $category[0]) {
    $cnt = 0;
    foreach($posttags as $tag) {
    $cnt++;
    echo ' cat_ID . '&tdo_tag=' . $tag->slug . '" title="This is single post '.$category->name . ', ' . $tag->name . '">' . $tag->name . '' ;
    if($cnt < $num) {
    echo ",";
    }
    }
    }
    }
    }

    it works like

    How can i limit category only to parent.
    For example i have a post listen in Cat1 and subcat
    I want to see tags only for parent Cat1.

    May be should use $category[0] ?
    PLS help.

    Thursday, April 3, 2008 at 7:12 pm #
  30. admin wrote::


    Hi toto – you want to get the id of the category on a post that is the parent of the other categories on the post?

    Friday, April 4, 2008 at 2:14 pm #
  31. admin wrote::


    I’m about to release an new version of tdo-tag-fixes. I’ve tested it on WP2.5, done some fixes to the tag cloud (as requested), added a tdotf_the_tags (to replace the_tags template tag) (as requested) and add some basic fancy permalink stuff (as requested). :)

    Friday, April 4, 2008 at 4:14 pm #
  32. toto wrote::


    Hi admin, yes exactly. :)

    Saturday, April 5, 2008 at 10:59 am #
  33. Toby wrote::


    The database I am building on my site would not be possible without this plug-in or a non-existent one that does the same things!?

    I think the WordPress people should roll it back into wordpress! Yes, 2.3 brought tag intersections… but doesn’t exposing category and tag+tag intersections make just as much sense if not more!?

    Oh the pretty cloud!

    Great work Mark!

    Tuesday, April 8, 2008 at 8:50 pm #
  34. çeşme wrote::


    Great plugin thank you

    Saturday, April 12, 2008 at 10:46 am #
  35. indojepang wrote::


    My head is spinning too fast with this!! :D

    simple question: how to write tag cloud from specific category?

    Sunday, April 13, 2008 at 5:01 am #
  36. indojepang wrote::


    I mean how to wrote this on home.php for wp_tag_cloud() from specific category only?

    Sunday, April 13, 2008 at 5:12 am #
  37. Confuscius wrote::


    Congratulations on a superb plugin idea. I have tried to get t doing what I want it to do but I am struggling! Please help!

    I ahve a standard WordPress2.5 install, a widget enable template showing the tag cloud. I have installed the plugin. the only change that I made to WP2.5 was that in widgets.php then I set the smallest and largest sizes and changed the number of tags to show.

    Next step was to edit tdotf.php to:
    ============================================================
    // You can change this if you want. Do not set it to ‘tag’. If you want to
    // disable this feature, just comment it out.
    //
    // $tdotf_tag_get_var = ‘tdo_tag’;

    // If you have fancy permalinks turned on, you can use this option to use a
    // more fancy form of the tdo_tag. The first paramater is the category_slug
    // and the second parameter is the tag_slug. If you want to disable this feature
    // just comment it out. (It depends on $tdotf_tag_get_var)
    //
    // $tdotf_fancy_tag_regex = ‘tdo_cat/(.+)/tdo_tag/(.+)’;

    // Set to false if you do not wish tag archive titles to be correctly updated
    //
    $tdotf_fix_tag_title_auto = true;

    // Set to false if you do not wish the built-in tag cloud automatically fixed
    //
    $tdotf_fix_tag_cloud_auto = true;

    // Set to false if you do not wish the category archive title to include tag filter
    //
    $tdotf_fix_cat_title_auto = false;

    // Enable some debug
    //
    $tdotf_enable_debug = false;

    ================================================

    The idea being that on each category then I would show a list of tags within that category but each tag link would point to the overall top level tag directory set up under my permalinks.

    The tag clouds are generated in each category BUT they are the first 50 alphabetically listed and not a cloud of the top 50 tags.

    Can anyone advise on where I have gone wrong or is this a bug?

    Thanks in advance for the help.

    Tuesday, April 15, 2008 at 3:17 pm #
  38. admin wrote::


    Hi indojepang,

    The modified tag cloud works pretty much the same as the built in WP tag cloud with one additional parameter “cat”.

    So if you want to use a specific category, find out it’s category ID, say 6 for our example. Then you can just called the tag cloud function like this:


    if(function_exists('tdotf_cat_tag_cloud')) {
    tdotf_cat_tag_cloud('cat=6');
    }

    You can use all the normal tag cloud parameters too. Is that what you are looking for?

    Wednesday, April 16, 2008 at 8:27 am #
  39. admin wrote::


    Hi Confuscius,

    The idea being that on each category then I would show a list of tags within that category but each tag link would point to the overall top level tag directory set up under my permalinks.

    From the look of it, you have the settings for the plugin correct.

    The tag clouds are generated in each category BUT they are the first 50 alphabetically listed and not a cloud of the top 50 tags.

    How are you calling the wp_tag_cloud function? What are the parameters?

    What you could try instead is called tdotf_cat_tag_cloud directly on the category archive template and disable the auto replace. By default the orderby is set to “name” so you need to change the orderby to count to list the top X tags. So you could called the tag cloud function like this:

    tdotf_cat_tag_cloud('orderby=count&number=50');

    This would give you the tdotf tag cloud with the tags ordered by count (not alphabetically) and limited to the top 50.

    Wednesday, April 16, 2008 at 8:35 am #
  40. indojepang wrote::


    Hi sorry for late reply..
    Yes! Your Plugin is Rock man! it works great for WP 2.5.. Thank u..

    FYI I tested in WPMU and got Blank screen..
    Just for testing.. :)
    But it would be great if it works in WPMU too..
    Cheers..

    Sunday, April 20, 2008 at 10:12 am #
  41. Confuscius wrote::


    Hi Mark

    Many thanks for the point in the right direction – I ended up replacing the tag cloud code in widgets.php with your suggested code and the addition of a ‘&order=DESC’ – this gives me a category tag cloud for each category where all tags point back at the global tags sorted high to low on the tag count – just what the doctor ordered. Neat.

    Kind regards.

    Sunday, April 20, 2008 at 11:32 pm #
  42. admin wrote::


    No problem Confuscius! :)

    Hi indojepang, what do you mean a “Blank Screen”? Does it literally kill your MU install?

    Monday, April 21, 2008 at 9:09 am #
  43. indojepang wrote::


    putting this plugin into mu-plugins directory gets me a blank screen (nothing shows up), unplugged it and back to normal again.. (for a second my heart stopped beating.. lol)

    Monday, April 21, 2008 at 2:31 pm #
  44. Queenvictoria wrote::


    hi mark .thanks of course ;)

    to fix the (tdof_)the_tags() on is_single() pages, i added this to your tdof_the_tags()


    function tdof_the_tags( $before = '', $sep = '', $after = '' ) {
    global $tdotf_tag_get_var,$cat;
    // mr.snow - we need to get the category another way if !is_category()
    if ( ! $cat ) {
    $category = get_the_category();
    $cat = $category[0]->cat_ID;
    }
    // if(is_category() && isset($tdotf_tag_get_var)) {
    if(isset($cat) && isset($tdotf_tag_get_var)) {



    Thursday, April 24, 2008 at 4:05 am #
  45. admin wrote::


    Thanks Queenvictoria,

    I was a bit unsure if it made sense to have it point to the category+tag when your on a single page. What happens if you have multiple categories for a post? You’ll only get the 1st category!

    I’ll see about rolling in the chance with some additional enhancements (like allow the user to specify what category to use)

    Thursday, April 24, 2008 at 9:24 am #
  46. baron wrote::


    hi. Thanks for plugin

    perfect.

    regards

    Tuesday, May 13, 2008 at 4:11 pm #

  47. Hi, it’s me again. I still can’t get the category/tag intersection to work. I’m now using WP 2.5.1, TDO Tag Fixes .4, and SimpleTags 1.5.7 (plus a few non-tag related plugins). Here is an example link:

    http://philip.yurchuk.com/category/software/?tdo_tag=rhino

    You’ll see there are multiple posts listed when there really should be only one. This feature would be extremely useful for another blog I’ve set up. I have the same exact setup there, and it also doesn’t work, but I don’t mind experimenting on my personal blog if you need more info.

    Thanks!

    Tuesday, June 3, 2008 at 3:24 am #
  48. admin wrote::


    Hi Philip Yurchuk, I’ve just done a small update to the plugin that might solve your problem. Could you try the dev version and tell me if that makes a difference?

    Thanks

    Tuesday, June 3, 2008 at 9:28 am #

  49. I really appreciate the effort, but it still isn’t working. Here is an example link:

    http://philip.yurchuk.com/category/software/?tdo_tag=rhino

    You can see there are a couple posts that don’t have the rhino tag.

    Sunday, June 8, 2008 at 1:04 am #
  50. admin wrote::


    Hi Philip, did you try disabling Simple Tags plugin (just in case their is a conflict)? Are you using any plugins that might be modifying WP_Query (i.e. messing with the order of posts in the template)?

    Monday, June 9, 2008 at 9:45 am #

  51. Here are the plugins I have activated (latest versions):

    Askimet
    Simple Tags
    Subscribe to comments
    Wordpress Database Backup
    WP-Footnotes

    I have tried disabling each plugin, but that didn’t fix it. I searched for wp_query in my theme (Tarski), but nothing was found. I’m running PHP 4.4.7 and MySQL 4.1.22. Thanks for your help.

    Wednesday, June 11, 2008 at 5:46 am #
  52. Joel Giddey wrote::


    Hi,

    You got a really great plugin going here, I was about to code something similar myself when I can across it. I’ve had it working quite nicely and added a few enhancements which can be seen at http://www.easymapinfo.com/wordpress25/category/australia/ (still under dev).

    The problem that I was having is when intersecting a category and multiple tags expecting an ‘OR’ join to take place and was getting a ‘AND’ join result. eg …/categoryname/?tdo_tag=tag1,tag2. The plugin correctly modifies the title but the result is definitely a ‘AND’ join.

    So I threw a virgin WP install at http://easymapinfo.com/virginwordpress/?cat=3 with only your plugin and it does the same thing.

    Thoughts?

    Friday, June 13, 2008 at 6:38 am #
  53. admin wrote::


    Hi Joel Giddey,

    I wonder is it something to do with the version of WordPress. It was working correctly on WP2.3 where I did the initial development. I haven’t properly tested it on WP2.5.1 yet, so maybe somethings been broken. Have you checked the bugs list?

    Friday, June 13, 2008 at 9:16 am #
  54. Joel Giddey wrote::


    I’ve checked the bug list on trac there is one there that is is slightly relevant but not directly to this issue. So I installed a fresh WP 2.3 with a fresh tdotf on http://easymapinfo.com/wordpress23/category/cat1/ and when is use tdo_tag=tag1,tag2 I’m still getting a ‘AND’ join result.

    Was thinking it may be as a result of $args->set_query_var('tag_slug__and',$tags); on line 149 of tdotf.php but when I try tag_slug__in I get no results. I think this may have something do to with query.php around line 1126 where WP seems to only handle intersects with tag_slug__and and not ‘in’.

    So until I find a solution I think I’m going to modify my changed tdotf to use radio buttons and not checkboxes and limit users to one cat with one tag intersects.

    But I am surprised that you had it working with your 2.3 install, was it dependant on any other plugins?

    Thanks!

    Saturday, June 14, 2008 at 6:30 am #
  55. admin wrote::


    Hi Joel,

    I’ve done some digging. Your right. Tags with an OR join do not intersect with categories. This seems true for WordPress 2.3 too. I’ve gone through the WordPress code and it’s not supported at all. I think I can make it work though by doing some magic with filters, so I’ll see what I can do.

    Monday, June 16, 2008 at 10:13 am #
  56. admin wrote::


    I’ve got a filter implemented now that correctly updates the intersection query when you have a set of tags that are ORed instead of ANDed. I’ll add it to the SVN later today, but if your in a here, here is the actual code you can add to the plugin:

      function tdotf_query_filter($where) {
          global $tdotf_tag_get_var,$wpdb;
          $tag_query = tdotf_get_tdo_tag_query();
          if(!empty($tag_query) && $tag_query != false && strpos($tag_query,',')) {
            $tags = split(",",$tag_query);
    
            // Grab all posts with these tags
            $sql = "SELECT p.ID FROM $wpdb->posts p INNER JOIN $wpdb->term_relationships tr ON (p.ID = tr.object_id) INNER JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) INNER JOIN $wpdb->terms t ON (tt.term_id = t.term_id)";
            $sql .= " WHERE tt.taxonomy = 'post_tag' AND t.slug IN ('" . implode("', '", $tags) . "')";
            $sql .= " GROUP BY p.ID";
            $post_ids = $wpdb->get_col($sql);
    
            // Pattern and replacement for query
            $pattern = "AND.*$wpdb->posts\.ID.*IN.*(.*)";
            $replacement = "AND $wpdb->posts.ID IN (" . implode(', ', $post_ids) . ")";
    
            // Update query
            $where = preg_replace('/'.$pattern.'/', $replacement, $where);
          }
          return $where;
      }
      add_filter('posts_where_request','tdotf_query_filter');
    



    Monday, June 16, 2008 at 10:38 am #
  57. admin wrote::


    The code I posted is slightly incorrect. I’ve done the change and its sitting in the SVN repo, so anyone can grab the dev version right now with the fix. I’ll probably release it officially during the week.

    Monday, June 16, 2008 at 11:42 am #
  58. scotjam wrote::


    Hi!

    I’d love to find out how to emulate the ‘tag surfer’ functionality that wordpress.com users have.

    Any ideas? I thought it might be possible to use your plugin and add some php code to change the links associated with the tags that are displayed.

    For example, I could change the hyperlink of a tag (e.g. mywebsitestag [+]) so that it will append the tag to the existing url, or I could change the hyperlink (e.g. mywebsitestag [x]) so that on clicking it, it will jump the user to the same url minus the tag selected.

    does this make sense?

    many thanks
    scotjam

    Wednesday, July 2, 2008 at 1:07 am #
  59. admin wrote::


    Hi Scotjam, what is the “tag surfer” functionality? I’m not familiar with it. If I know what it does, I can see if its doable.

    Wednesday, July 2, 2008 at 9:41 am #
  60. Joel Giddey wrote::


    Great work on the fix to the plugin, I was digging through the new code and it really is a clever bit of work with the ‘OR’ joins.

    For those interested I’ve finalized my implementation of the plugin over at my site a good url example is http://travel.accommodationsphere.com/earth/south-africa/gauteng-za/ look over at the left for accommodation types which are actually tags using the tdo_tag_fix with a few mods.

    Regards
    JG

    Monday, July 14, 2008 at 8:18 pm #
  61. scotjam wrote::


    Hi Joel

    Brilliant site. Just one question, how did you get to make sub categories work with tags?

    I was under the impression that tdo only works with single category intersections with one or more tags. But you’ve got sub categories working which is brilliant!

    Also, I like the way the checkboxes are filtered. A very nice touch indeed.

    cheers

    Monday, July 14, 2008 at 10:02 pm #
  62. dave wrote::


    the plugin is fantastic, thank you.
    i am having 2 issues though that i just can’t sort out.
    i have included

    but when using on a page like

    ?cat=6&tdo_tag=tagename

    is it possible to have the cloud generate links like

    ?cat=6&tdo_tag=tagename+anothertag

    also, i can’t get the permalinks to work, they always show like
    tdo_tag=tagname

    any ideas?

    Sunday, July 27, 2008 at 1:23 am #
  63. admin wrote::


    Joel Giddey: Nothing you can’t do with some regex! :)

    dave: If you want the tag cloud to generate different links, you’ll need to modify the code yourself currently. :( Also what do you mean by the permalinks aren’t working?

    Monday, August 4, 2008 at 10:48 pm #
  64. jackeye wrote::


    I would really like this to work with http://codex.wordpress.org/Template_Tags/query_posts;

    I need to use this functionality below.

    query_posts($query_string . “&showposts=1″)

    Has anyone figured this out.
    I need it badly and cant get it.

    Sunday, August 10, 2008 at 6:12 pm #
  65. Corinne wrote::


    Hi !

    This plugin is just what I need, but it doesn’t work at all with me.
    I have WordPress 2.5.1.

    I try to display:
    the category: 2008-07-bali
    AND
    the tag: plongee

    with the following url:
    http://petitesbullesdailleurs.fr/category/2008-07-bali/?tdo_tag=plongee

    but the result is similar to:
    http://petitesbullesdailleurs.fr/category/2008-07-bali/

    Any idea or suggestion?
    Many thanks!!!
    :-)

    Corinne

    Wednesday, August 13, 2008 at 1:13 pm #
  66. jackeye wrote::


    You must be having the same problem as me.

    In your archive.php you must be using a custom query and that is the problem.

    Thursday, August 14, 2008 at 12:30 am #
  67. admin wrote::


    Yes Jackeye your right. If you’re using a plugin or a theme that creates a custom query, it prevents tdo-tag-fixes from actually modifying the query.

    I just spent a few days trying to build a custom query in a theme that doesn’t break tdo-tag-fixes so it’s not easy.

    Thursday, August 14, 2008 at 8:50 am #
  68. jackeye wrote::


    Ya It seems any query I use will break it.

    If you use

    it breaks the normal wordpress tags so maybe it needs to pass $query_string somewhere in the plugin.

    I dont know the first thing about this though.

    Saturday, August 16, 2008 at 6:41 pm #
  69. jackeye wrote::


    Ya It seems any query I use will break it.

    query_posts($query_string . “&showposts=5″)

    If you use query_posts(“showposts=5″)

    it breaks the normal wordpress tags so maybe it needs to pass $query_string somewhere in the plugin.

    I dont know the first thing about this though.

    Saturday, August 16, 2008 at 6:42 pm #
  70. admin wrote::


    jackeye said:
    Ya It seems any query I use will break it.

    Yes it will. There isn’t an easy solution. What I assume your doing is in your category template in your theme your trying to modify the wp_query object. However, the query has already been executed by then, so setting new parameters will require running the query again, and it’ll forget the tdo-tag stuff!

    The only way to do it is basically do it the way tdo-tag-fixes does it by creating a filter that modifies the query before it’s called (i.e. before the actual theme).

    If anyone wants to know how to do this, please ask and I’ll write up a short tutorial. I did this on my current theme so that I could do some mods to the query without breaking tdo-tag-fixes.

    Thursday, August 21, 2008 at 8:58 am #
  71. jackeye wrote::


    Yes please tell us how to do this!

    Thursday, August 21, 2008 at 8:35 pm #
  72. jackeye wrote::


    Are you going to post this. I would really appreciate it.
    Thanks.

    Friday, August 29, 2008 at 4:10 pm #
  73. admin wrote::


    jackeye said:
    Are you going to post this. I would really appreciate it.

    Plan to do it Monday! :)

    Sunday, August 31, 2008 at 12:15 pm #
  74. admin wrote::


    jackeye said:
    Are you going to post this. I would really appreciate it.
    Thanks.

    Done. Hope everyone finds it helpful.

    Monday, September 1, 2008 at 9:27 am #
  75. jackeye wrote::


    Thank you for posting this, but I found a new way to do it.

    http://trac.wordpress.org/ticket/5433

    It looks like the tag category intersection will be fixed in wordpress soon and for now I can just use &tag=a+a

    Wednesday, September 3, 2008 at 1:18 am #
  76. jackeye wrote::


    Here is the link related to my last comment

    trac.wordpress.org/ticket/5433

    Wednesday, September 3, 2008 at 1:55 am #
  77. admin wrote::


    jackeye said:
    Thank you for posting this, but I found a new way to do it.

    http://trac.wordpress.org/ticket/5433

    It looks like the tag category intersection will be fixed in wordpress soon and for now I can just use &tag=a+a

    If you read through the comments, it was meant to be fixed in wp2.3 and they didn’t bother doing it for wp2.6.1. I wouldn’t hold much out for it. Still, if they do, that’d be great and I can retire this plugin (probably).

    Wednesday, September 3, 2008 at 9:27 am #
  78. Mark wrote::


    Thanks for this great plugin.

    I’ve got

    in my sidebar and it works great.

    It generates the link:
    http://localhost/blog/index.php/category/news/?cattag=sketching

    However

    is not working in the post metadata.

    It generates the link
    http://localhost/blog/index.php/category/?cattag=sketching
    which returns a 404.

    The category name: /news/ seems to be missing in the URL. How can I get the function tdotf_the_tags to also write the category name in the URL?

    Monday, November 3, 2008 at 6:32 pm #

  79. Thank you – I’ve been brainstorming on this since late, late Friday night – and this seems to do what I needed.

    This is how I applied it. At the bottom of single.php, I added this code:

    <a href=”http://site/category//?tdo_tag=additional-recommendations”>Additional Recommmendations for

    <a href=”http://site/category//?tdo_tag=stories”>Stories for

    On my site, each post name has a corresponding, identical category name (that is the only way this would work from what I see). Each category/post name has additional categories that need to be part of each main post/category: additional recommendations, stories…but since intersecting categories doesn’t work in WordPress, changing those “subcategories” to tags and using your plugin made this work. Now, for the 300 post/category combinations, I only needed one piece of code to support the automation of this part. Thanks!

    Sunday, November 9, 2008 at 5:24 pm #
  80. Bjorn wrote::


    Hey there! Great plug-in. This solved my problem for a website that lists industries (tags) in cities (categories). I’m now able to go into a city and list a tag cloud of all the industries in that city. You can see yourself at Studentrabatt.no (a Norwegian website that lists all the student discounts in Norway).

    I have a question. On the city (category page), I have some banners in the right margin. I’d like to offer different banners for different cities, which is solved by the following code:

    However, when I drill into an industry from there (tag), I’d like to show a different banner ad. I’m looking for some code that does something like “if this category AND this tag then echo Banner ad 2″.

    The goal is to offer very specific ads to companies in certain industries for certain cities.

    Is this possible currently? If not, would it be a lot of development, and do you know of anybody who’d be interested in helping out? (hint hint :-)

    Monday, November 10, 2008 at 4:55 am #

  81. Mark said:
    However

    is not working in the post metadata.

    It generates the link
    http://localhost/blog/index.php/category/?cattag=sketching
    which returns a 404.

    The category name: /news/ seems to be missing in the URL. How can I get the function tdotf_the_tags to also write the category name in the URL?

    I’ll have to have a look at it, when I get the chance. I haven’t extensivily tested that part yet.

    Monday, November 10, 2008 at 10:56 am #

  82. Bjorn, your code seems to have been stripped out of your comment. Any chance you could try posting it again, but with the < and > replaced with &lt; and &gt;? (it’s the angle brackets and “php” references that get the code stripped out)

    Monday, November 10, 2008 at 10:59 am #

  83. Is there a way to create a custom template page for when people are on an intersect page for a category+tag, i.e

    category+tagname.php?

    Monday, November 10, 2008 at 4:38 pm #
  84. Bjorn wrote::


    Mark Cunningham said:
    Bjorn, your code seems to have been stripped out of your comment. Any chance you could try posting it again, but with the < and > replaced with &lt; and &gt;? (it’s the angle brackets and “php” references that get the code stripped out)

    Sorry, it was basically an IF statement using is_category. If it is_category, then show the banner. That works for me – if it is a certain city, then show a certain banner. However, I’m trying to make an IF statement for a certain city and industry (intersection of a category and tag) and only show the content then. Does that make sense?

    Monday, November 10, 2008 at 4:51 pm #
  85. Mark wrote::


    Hi Mark

    Problem solved. There was a problem with the tdotf_the_tags when used on category pages. Thanks to the comment by QueenVictoria (#comment-103241) I was able to solve the problem.

    In the tdotf.php file, I replaced the code beginning on line 399:

    function tdotf_the_tags( $before = ”, $sep = ”, $after = ” ) {
    global $tdotf_tag_get_var,$cat;
    if(is_category() && isset($tdotf_tag_get_var)) {
    $tags = get_the_tags();

    with the following:

    function tdotf_the_tags( $before = ”, $sep = ”, $after = ” ) {
    global $tdotf_tag_get_var,$cat;
    if ( ! $cat ) {
    $category = get_the_category();
    $cat = $category[0]->cat_ID;
    }
    if(isset($cat) && isset($tdotf_tag_get_var)) {
    $tags = get_the_tags();

    and this did the trick.

    One thing to note is that tdotf_the_tags was misspelled in the original file (as tdof_the_tags). I suppose either spelling would work, but I changed it to tdotf_the_tags for consistency.

    -Mark

    Tuesday, November 11, 2008 at 7:58 am #
  86. Tommy wrote::


    Hi Just letting you know that this plugin is breaking my site when using WordPress 2.6.2. It crashes any page where the Tag Cloud is featured.

    Thanks anyway, it sounds like a good plugin!

    Wednesday, December 3, 2008 at 3:29 pm #

  87. Tommy said:
    Hi Just letting you know that this plugin is breaking my site when using WordPress 2.6.2. It crashes any page where the Tag Cloud is featured.

    Could you give me more information please? I’m using the plugin on this website which is WordPress 2.6.3 with no crashes (as you can see). Have you tried disabling all your other plugins to see if there is a clash? It might also be an issue with your theme.

    Wednesday, December 3, 2008 at 4:03 pm #
  88. Alex wrote::


    @Tommy, I am using it on 2.6.2 without any crashes. looks like you have any modification installed which is causing the problem.

    Thursday, January 15, 2009 at 4:23 pm #
  89. Forum wrote::


    hello

    Bjorn, your code seems to have been stripped out of your comment. Any chance you could try posting it again, but with the replaced with < and >? (it’s the angle brackets and “php” references that get the code stripped out)

    Wednesday, February 4, 2009 at 4:13 pm #
  90. Rick wrote::


    Hey ,

    I love the plugin. But I still can’t figure it out with single pages. I’ve updated the code like Queenvictoria descriped, still no results.

    Can you please upload a new php file with the correct update?

    Monday, March 2, 2009 at 3:35 pm #
  91. Jack wrote::


    Hey, the tag cloud breaks for me when I enable this plugin:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/xxx/xxx/wp-includes/kses.php(1005) : runtime-created function on line 1

    Any tips?

    Thursday, March 12, 2009 at 2:38 pm #

  92. Jack said:
    Hey, the tag cloud breaks for me when I enable this plugin:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/xxx/xxx/wp-includes/kses.php(1005) : runtime-created function on line 1

    Any tips?

    Have you tried updating the memory allocation? (A quick google will tell you how to do this for PHP)

    Friday, March 13, 2009 at 5:41 pm #

  93. Rick said:
    Hey ,

    I love the plugin. But I still can’t figure it out with single pages. I’ve updated the code like Queenvictoria descriped, still no results.

    Can you please upload a new php file with the correct update?

    Queenvictoria posted that comment April 2008, i’m not sure she’s still monitoring the thread. What are you trying to do?

    Friday, March 13, 2009 at 5:43 pm #
  94. welt wrote::


    hi Mark – thanks for the great plugin. Can you give me some clues for modifying it to also display the post count for each tag in the tag-cloud please ? I’m not a programmer, obviously .. :D

    Thursday, April 9, 2009 at 1:55 pm #
  95. Josh Jones wrote::


    Thanks a million for this mate. So useful for my site. Great job!

    Friday, April 17, 2009 at 5:30 pm #
  96. Ray wrote::


    Could we have a filter that also overrides the current tags on a post so that it uses TDO Tag Fixes’ URLs.

    eg. I have a post and inside that post there are links to tags assigned to that post.

    I want these tags’ links to be like:
    http://website.com/category/mycategory/?tdo_tag=tag1+tag2

    Is this possible?

    Friday, June 5, 2009 at 1:47 am #
  97. Ray wrote::


    Ray said:
    Could we have a filter that also overrides the current tags on a post so that it uses TDO Tag Fixes’ URLs.

    eg. I have a post and inside that post there are links to tags assigned to that post.

    I want these tags’ links to be like:
    http://website.com/category/mycategory/?tdo_tag=tag1+tag2

    Is this possible?

    I answered my own question!
    It’s available in the doucumentation.

    tdotf_the_tags can be used in place of [`the_tags`](http://codex.wordpress.org/Template_Tags/the_tags) and if used in a category archive, the tag links will point to the category archive filtered by the tag.


    Friday, June 5, 2009 at 1:51 am #
  98. Nooka wrote::


    Hey there!

    Love the plugin–thanks for your help. I’m not sure what happened today, but I started getting an error:

    Catchable fatal error: Object of class stdClass could not be converted to string in /home/madefoum/public_html/kidcityny/blog/wp-content/plugins/tdo-tag-fixes/tdotf.php on line 230

    Can you help at all please? Much appreciated!

    -N

    Monday, June 8, 2009 at 6:29 pm #
  99. Mark wrote::


    Great plugin, I have been using it on a project in development and will go live with it.

    Taxonomy has been added to wp_tag_cloud in WordPress 2.8. Wondering if it will effect this plugin at all?

    Thursday, June 11, 2009 at 1:46 pm #

  100. Mark said:
    Taxonomy has been added to wp_tag_cloud in WordPress 2.8. Wondering if it will effect this plugin at all?

    Ah sugar. I had forgotten about this plugin and WordPress 2.8. Right now, I don’t know, I don’t think it should break the plugin, but I’m not 100% sure of this.

    Thursday, June 11, 2009 at 2:21 pm #
  101. Ira Weissman wrote::


    Hey Mark. Your plugin is crucially important for the proper layout of my site
    I am deeply grateful to you for taking the time to code this extremely useful plugin. I had one small question — on my homepage, which is the one page on my site that is not category specific, the tags wrap very nicely. On category pages, however, where your plugin is activated, the tags don’t wrap and consequently get cut off. (I have tags set to list mode, not cloud mode).

    I figured it must be related to your plugin, since the plugins wrap on the home page that includes all categories.

    Tuesday, June 30, 2009 at 10:06 am #

  102. Hi Ira, to confirm if its this plugin, you could simple disable the plugin and see if the tag cloud is correct?

    Tuesday, June 30, 2009 at 10:44 am #
  103. Ira Weissman wrote::


    Confirmed. It’s the plugin. The tag cloud (list) wraps correctly when plugin is disabled.

    Tuesday, June 30, 2009 at 4:13 pm #
  104. Ira Weissman wrote::


    Hi Mark. I think I’ve narrowed down the problem a bit. Perhaps now you could suggest a solution. It seems that when the plugin is activated, tags with spaces are created in the with &nbsp and not spaces. This makes it impossible to wrap them. Example:

    With Plugin:
    Weak Economy

    Without Plugin:
    Weak Economy

    Any ideas of how to fix this?

    Thanks again!
    Ira

    Wednesday, July 1, 2009 at 12:45 pm #
  105. Ira Weissman wrote::


    Hi Mark. I think I’ve narrowed down the problem a bit. Perhaps now you could suggest a solution. It seems that when the plugin is activated, tags with spaces are created in the with &nbsp and not spaces. This makes it impossible to wrap them. Example:

    With Plugin:

    Weak& nbsp;Economy

    Without Plugin:

    Weak Economy

    (strategic spaces added to show code)
    Any ideas of how to fix this?

    Thanks again!
    Ira

    Wednesday, July 1, 2009 at 12:56 pm #
  106. Ira Weissman wrote::


    In my previous comment, I added spaces before the and tags, and in the preview, it showed the line of code, but when I submitted it, it converted the tags anyway. Sorry about that. But anyway, you can see that it added the nbsp.

    Wednesday, July 1, 2009 at 12:57 pm #
  107. Ira Weissman wrote::


    Please just delete my previous comment, you get the idea. It’s embarrassing how dumb I just was!

    Wednesday, July 1, 2009 at 12:59 pm #
  108. Ira Weissman wrote::


    Ok, so I found the following line of code and decided to comment it and see what happens:
    $tag = str_replace(‘ ‘, ‘ ’, wp_specialchars( $tag ));

    So far, my problem has been resolved. My multiple word tags correctly wrap. But did I just set off global thermonuclear war somewhere else by doing this? I’m assuming there’s some reason for that line of code?

    Wednesday, July 1, 2009 at 1:43 pm #
  109. Jasmine wrote::


    Is it possible to go to page 2 or 3 of results when using tdo?
    as I seem to get 404 page

    thanks

    Wednesday, September 16, 2009 at 12:15 pm #
  110. dwhip wrote::


    Ray said:

    tdotf_the_tags can be used in place of [`the_tags`](http://codex.wordpress.org/Template_Tags/the_tags) and if used in a category archive, the tag links will point to the category archive filtered by the tag.

    I’m looking to replace the the_tags so that the displayed tags link to a result of posts related to that tag and under the category of that post. But replacing the the_tags with todotf_the_tags doesn’t work. Am I missing something? Would you be able to show an example code line of how you did it?

    Sunday, October 11, 2009 at 4:55 am #
  111. roelani wrote::


    Hi! Thanks for the great plugin. I’m having trouble with implementation however. It works fine when I query /?mytags=tag directly in blog root. However, my category php pages are all custom queries, so typing /category/mycat/?mytags=tag pretty much does nothing.

    Is there any way to force wordpress to use, say, an archive.php file for displaying anything that has to do with the tags? Or can I force it to use search results pages to display if I add something like ?s=0 in the url?

    I desperately need this working!

    Thank you. :)

    Wednesday, October 21, 2009 at 8:05 pm #
  112. Linus wrote::


    Thank you Mark for all your efforts, you’re the bestes ever! ;)

    It’s seems hard finding a working plugin to display only “one category” tag cloud with wp 2.8?

    Your piece of code is the closet I’ve come to a solution. It works for the tag cloud filtering and correctly only displays one category tag cloud, (I could never ever have done that myself) and the code works for the href URL upon a click on a tag. But the actual click only takes me to a category page, with all post within that category(?). So I solved it with an ugly hack. I read the query string at the category page and filter the category page with the tag_parameter in the query_post.

    Voila! I got a working Mark cunningham plugin!
    And I know almost none PHP :)

    /Linus

    in my category.php
    //OBS!! ugly hack from a noob!!!

    //get tdo_tag from URL
    $tmp = $_SERVER['QUERY_STRING'];
    $tmp = explode(“&”,$tmp);
    $id = $tmp[1];
    $tmp2 = explode(“=”,$id);
    $mytag;

    if($tmp2[0]==’tdo_tag’){
    query_posts(“cat=$cat&tag=$mytag”);
    }else{
    query_posts(“cat=$cat”);
    }


    Thursday, November 12, 2009 at 9:57 am #
  113. Linus wrote::


    Sorry about that!
    OMG an error in the noob code :)

    //get tdo_tag from URL
    $tmp = $_SERVER['QUERY_STRING'];
    $tmp = explode(“&”,$tmp);
    $id = $tmp[1];
    $tmp2 = explode(“=”,$id);
    $mytag=$tmp2[1];

    if($tmp2[0]==’tdo_tag’){
    query_posts(“cat=$cat&tag=$mytag”);
    }else{
    query_posts(“cat=$cat”);
    }


    Thursday, November 12, 2009 at 10:12 am #
  114. Diego wrote::


    Hi man, your plugin is very good. But, i need change the separator in wp_tag_cloud. I have this in my theme:

    When the plugin is activated i have a trouble:

    Array
    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wp\wp-content\themes\gluttony\category.php on line 19

    Solution?
    Thanks

    Thursday, January 7, 2010 at 5:09 am #
  115. Lelia Thomas wrote::


    Hi, Mark. This is a great plugin, and, as others have said, it’s vital to my site’s design. One problem I’m having is with styling it. Essentially, I want to know what the best way to style it would be.

    I see that there is no “stepping” system in place, but instead tag-link-# classes that are related to the tag’s ID. This is really problematic for me, because I need the color of the tag to correlate with its dynamic size, not its static ID.

    I’m switching (back) to WP from ExpressionEngine. And basically I need my WP tag cloud to look like what I’ve had in EE. (Example in sidebar here: http://www.leliathomas.com/portfolio)

    Is there a way to achieve this with your plugin?

    Thanks!

    Wednesday, March 10, 2010 at 12:41 am #
  116. Josue Perdomo wrote::


    How can I make this work in dropdown tags lists? I don´t want to use tag cloud.

    Friday, March 26, 2010 at 1:14 pm #
  117. Jasmine wrote::


    Any fix for this yet?

    Is it possible to go to page 2 or 3 of results when using tdo tag?
    as I seem to get 404 page

    Friday, May 28, 2010 at 11:16 pm #
  118. Paul wrote::


    hi, does this work with wp 3.0 ? does not look like that…

    Wednesday, July 7, 2010 at 10:29 am #

  119. Hi @Paul. I haven’t checked yet I’m afraid.

    Wednesday, July 7, 2010 at 11:31 am #
  120. Paul wrote::


    well, it does not in my case… Tag cloud/filtering based on category works, but category/tag intersection does not.

    Friday, July 9, 2010 at 12:58 pm #
  121. Dog wrote::


    How can I make this work in dropdown tags lists? I don´t want to use tag cloud.

    Mike,
    Author of Dog Trainer

    Tuesday, July 13, 2010 at 5:21 pm #
  122. Miguel wrote::


    Hi, I’m using it on 3.0 and everything works fine, the only issue is that the tag title is taking over single_cat_title() and displaying the tag name twice in my theme, check it out: http://pixelmm.com.br/c/portfolio/sites/?tag=internacional

    it was supposed to be “Desenvolvimento de Sites” big and “internacional” smaller, both are the tag name

    can anyone figure out why?

    Thursday, July 29, 2010 at 7:55 pm #
  123. E2 Solutions wrote::


    Great Work… its very much helpful my my site. thanks for sharing with us.

    Friday, August 20, 2010 at 8:48 am #
  124. Levi wrote::


    LOVE YOU! You saved my day, this is working just great.

    Monday, October 11, 2010 at 10:59 am #
  125. Iffi wrote::


    Nice Plugin and i am using it with out any problem. just download from wordpress.org site and install and active.

    Thursday, October 21, 2010 at 7:43 pm #

  126. Thanks for the great plugin. So useful for my site.
    Im brasilian, and my english are bad, but…

    Thank you.

    Thursday, November 11, 2010 at 10:27 pm #
  127. Tom wrote::


    Hi Mark!

    Great plugin! Did you were able to create a 3.0 version? Would be great!

    Best regards,

    Tom

    Monday, December 20, 2010 at 5:07 pm #
  128. Ahmad wrote::


    Thanks Mark for your great plugin.
    I have a question:how to show posts randomly?
    (when i use query_posts(), the tdo tag fix doesn’t work any more.)

    Wednesday, February 2, 2011 at 4:42 am #
  129. Ahmad wrote::


    Thanks Mark for your great and helpful plugin.
    I have a question:how to show posts randomly:
    (when i use query_posts(),tdo tag fix doesn’t work anymore.)

    Wednesday, February 2, 2011 at 4:51 am #
  130. Ahmad wrote::


    Thanks Mark for your great plugin.
    I hava a question:how to show posts randomly?
    (when i use query_posts(),tdo tag fixs doesn’t work anymore)

    Wednesday, February 2, 2011 at 6:15 am #
  131. Suzanna wrote::


    Hi there,

    This Plugin is fantastic… thank you so much!

    I’m a little new to this, so I apologize if this is a silly question, but is there anyway to separate the tag cloud output with commas?

    Thanks!

    Monday, August 1, 2011 at 7:59 pm #

  132. Hi Mark — not sure if you’re still supporting this plugin, but I had a troubleshooting question.

    We’ve got the plugin set up on retroland.com to create archives of tags within a particular category… for example, category “toys,” tag “70s.” The URL looks like this:

    http://www.retroland.com/toys/?tdo_tag=70s

    It works great on the first page of the results… but on the second and subsequent pages the results are simply the next most recent posts period..

    Any ideas? Since the plugin isn’t officially supported to the current version of WordPress, I understand if you’re not interested in supporting it… but if so, do you have suggestions for alternative solutions?

    Thanks very much,

    Matt

    Thursday, August 18, 2011 at 7:03 pm #

  133. I really like this plugin since it does what it is meant to do in an easy way.

    Yet I have one request, that others already asked: Is it possible to display the tag list (or cloud) as a dropdown? As a bonus it would be great to show the number tags right next to each tag.

    Wednesday, September 21, 2011 at 11:09 am #
  134. Junnydc wrote::


    need to check on this how to integrate on a wordpress + classipress theme site.

    Thursday, November 17, 2011 at 1:56 am #
  135. Colir wrote::


    Hi. tHanks for you plugin, it work well.
    however i’m looking for a way to display th number of post linked to a tag in a category page.
    I try with ‘format=array’
    but in my llop, i can’t acces to “$tag->count”

    Can you please helpe me ?

    thanks

    Wednesday, September 19, 2012 at 5:22 pm #

Trackbacks/Pingbacks (11)

  1. Hacking » Blog Archive » TDO Tag Fixes Wordpress Plugin (0.1) on Thursday, December 6, 2007 at 9:24 pm


    [...] Read the rest of this great post here [...]


  2. [...] sabırlı ve çok ama çok prensipli olun. Nasihat kısmını geçtiğimize göre şu TDO Tag Fixes eklentisine değinebiliriz. TDO Tag Fixes eklentisi WordPress 2.3 ve üstü sürümleri için [...]


  3. [...] potential solution lies in de-bugging Software: TDO Tag Fixes WordPress Plugin (0.2) [ thedeadone.net ]: did you know that you can display multiple tags in the one archive and even generate a feed for [...]


  4. [...] potential solution lies in making the best of Software: TDO Tag Fixes WordPress Plugin [ thedeadone.net ]: did you know that you can display multiple tags in the one archive and even generate a feed for [...]

  5. WordPress Plugins Database » Plugin Details » TDO Tags Fixes on Saturday, February 23, 2008 at 8:01 am


    [...] Visit [...]

  6. Wp Wordpress » Blog Archive » TDO Tags Fixes on Saturday, February 23, 2008 at 8:59 am


    [...] Visit [...]

  7. TDO Tag Fixes Eklentisi | webmaster blog on Friday, March 7, 2008 at 8:33 pm


    [...] inceliyordum ve bu eklentiden haberim oldu sayesinde. Kendisine teşekkürler Gelelim eklentiye, TDO Tag Fixes Eklentisi WordPress için mükemmel bir seo eklentisidir. Özelliğine gelince, mesela blogunuzda [...]


  8. [...] TheDeadOne.net on Tags and Categories Posted March 31, 2008 Software: TDO Tag Fixes WordPress Plugin [...]

  9. Dyason Hat on Tuesday, July 15, 2008 at 8:59 pm


    TDO tag fixes with a twist…

    For those who are not familiar with TDO tag fixes, its a fantastic plugin that makes up for alot of wordpress’s shortfalls in what i like to call ‘filtering’ posts. It basically allows you specify exactly what posts you want shown bas…

  10. João Miguel Aliano - Retiro Espiritual no Larica Total on Friday, November 7, 2008 at 6:54 pm


    [...] TDO tag fixes [...]


  11. [...] you need to download the TDO Tag Fixes WordPress Plugin which gives you more flexibility in your incorporation of tags. Then you will want to add the [...]