A Better Tag Cloud

I was pretty annoyed with the default tag cloud widget. It does a lot of things wrong, like inconsistent HTML markup and hardcoded font sizes. So I wanted to write my own. Digging through the code I found out that the wordpress wp_tag_cloud() function is pretty powerful. In fact, it could do almost everyhing I want. So I abandoned my plan to rewrite everything from scratch and added a nice admin interface to my tag cloud widget.

This plugin makes the options for wp_tag_cloud() available to a tag cloud widget and a shortcode. This means that you can easily choose things like font sizes, HTML markup and ordering. See the wp_tag_cloud page for what the settings can do.

Additionally, it is possible to sort tags by count and alphabetically at the same time. It is also possible to add a counter to the tags, so that your visitors can see how many posts are associated with each tag. The plugin also adds a sensible CSS class to every tag.

Here's a demo of the new shortcode:

Usage

The easiest way to use this plugin is to drag the widget into one of your sidebars.

There is as well the shortcode [nktagcloud]. Examples:

  1. [nktagcloud] This displays the tag cloud as configured on the options page.
  2. [nktagcloud single=yes] This does the same but shows only the tags of the current post.
  3. [nktagcloud post_id=1234] Displays the tags of the post identified by post_id.
  4. [nktagcloud separator="" categories=no] Remove separator and categories.

Using the tag cloud in your theme

You can call the function nktagcloud_shortcode() from your theme to get the same output as from the shortcode. Example:

<?php
if ( function_exists( 'nktagcloud_shortcode' ) ) {
    echo nktagcloud_shortcode( null );
}

There's also the nk_wp_tag_cloud() function. You can use it to generate a tag cloud with a different configuration than the plugin's one. It accepts the same parameters as wp_tag_cloud(). Example:

<?php
    if ( function_exists( 'nk_wp_tag_cloud' ) ) {
    echo nk_wp_tag_cloud( 'single=yes&separator= - &categories=no' );
}?>

Additonal parameters (all strings):

  • single: Only tags of the current post ('Yes', 'No')
  • categories: Inlude categories in the cloud ('Yes', 'No')
  • replace: Convert blanks to non-breaking spaces ('Yes', 'No')
  • post_id: Display only tags of the specified post (post ID)
  • mincount: Show only tags that have been used at least so many times
  • separator: Tag separator
  • inject_count: Add a counter to the tag ('Yes', 'No')
  • inject_count_outside: Add the counter outside of the tag hyperlink ('Yes', 'No')
  • nofollow: Add the noffow attribute to the tags in the cloud ('Yes', 'No')

Downloads are at the plugin's WordPress.org page.

WordPress plugin demos are disabled as I don't use WordPress on this site any more.

Published on Nov. 3, 2008 at 6:41 p.m. by Nicolas and tagged tag cloud, improved tag cloud, flexible tag cloud, configurable tag cloud, better tag cloud, WordPress plugin, WordPress. You can follow the discussion with the comment feed for this post. Feeling generous? Donate!

359 comments

  1. avatar
    wrote this comment on

    I like the options on the widget, but when I try to change the number of tags shown in the widget options, it won't change. When I change it and click the "Update Settings" button or the "Change" button, neither one will work, and it resets itself to 0. I managed to get the number of tags I want showing by editing the number in the php code, but I thought you might like to know it's not working for me in the widget options.

  2. avatar
    wrote this comment on

    Oh, sorry, also, that was happening with version 0.1.0 yesterday and still today when I upgraded to 0.2.0 and I'm using WordPress 2.6.3

    If that helps. :)

    1. avatar
      wrote this comment on

      Please try the 0.2.1 release. I think it's fixed now. Thanks for reporting.

  3. avatar
    wrote this comment on

    That is some snappy updating! Working great for us now. Thanks for the great plugin.

  4. avatar
    wrote this comment on

    I like it, it's a perfect widget.

    Just one question, is there a paid version to remove the credit link?

    1. avatar
      wrote this comment on

      Hi Chris, it's already possible to remove the link.

  5. avatar
    wrote this comment on

    Hi, thanks for the great plugin! Just one question .. is there a way to have 2 widgets. I want to display it on two different sidebars.
    Thanks and keep up the good work!

    1. avatar
      wrote this comment on

      Hallo Klaus, it's not possible at the moment. I'll have to modify the widget. Will look into it, maybe this week.

      1. avatar
        wrote this comment on

        It turns out that the documentation for doing a multi instance widget is really lousy. I did look into it but it's going to take more time.

  6. avatar
    wrote this comment on

    Hello,

    Is it possible to have the widget sort the most popular tags in alphabetical order? Thanks!

    1. avatar
      wrote this comment on

      Hi gestroud, I think there's a flaw in your logic: you either sort a list alphabetically or by popularity. You could give one criterion precedence over the other, but that doesn't make a lot of sense imo.
      Btw, you didn't define popularity, what do you mean by that word?
      Maybe you could write down an example sorting to make it clear what you mean.

  7. avatar
    wrote this comment on

    I installed the tag cloud and it works grat, but I don't think any of my custom changes made a difference. what am i missing. also, can the color be changed.

    1. avatar
      wrote this comment on

      Patrick, looks fine to me on your site. The color can be changed through css.

  8. avatar
    wrote this comment on

    Hey Nicolas, I would like to know if in the future a feature to add post count next to the tags will be implemented. I'm currently using Configurable Tag Cloud plugin for WordPress. Furthermore, about gestrouds comment concerning sorting most popular tags in alphabetical order. I have also wanted this feature.

    e.g. If you have 4 tags and they are labeled as: student, classes, books, courses. Let say you have 10 posts that contain the student tag and the remaining 3 tags both have an equal number of 7 posts.

    The order for most popular would be: student, classes, books and courses.

    The order for most popular sorted alphabetically would be: student, books, classes and courses.

    My current tags plugin sorts by most popular, but for tags with the same post count the tags are listed from what I can tell to be randomly.

    In the future, do you think you can implement such features perhaps?

    1. avatar
      wrote this comment on

      Ok, I'm starting to see the need for such a feature. Would require re-implementing wp_tag_cloud function (copy &amp; paste) and adding some sorting. Doesn't sound too hard. Stay tuned for an update.

  9. avatar
    wrote this comment on

    Hello,

    you have made a new update and now the Tag Cluod ist absolutly wrong ro see in the IE.

    The Tags are all in one line around the complett Website .....
    But only in the IE...when i take the FF is all okay...whats up there?

    1. avatar
      wrote this comment on

      It's probably a CSS issue, but I can't verify that unless you enable the widget on your site. The modifications I did should not change anything about the CSS.
      Maybe you changed the remove css option?

  10. avatar
    wrote this comment on

    Hey Nicolas, I just checked back for updates and installed the latest version of your better tag cloud widget. I have found the following:

    On my blog, I have you widget set to "list" format, however, the tags are still displayed as a "flat" format. I have cleared browsers cache etc, but still the same results.

    Furthermore, may I suggest the font size be entered in manually in a box rather than selected from a list? This would allow for manual font sizes which would include decimal point fonts.

    1. avatar
      wrote this comment on

      Hi, your first issue seems to be fixed. About the font sizes... don't know. I'm not sure why It's a dropdown. Will look into it when I have some time.

  11. avatar
    wrote this comment on

    My tags are still displaying as a "flat" format even though I have "list" selected as the format in the widget settings.

    1. avatar
      wrote this comment on

      No they are not, and what makes you think your current display is flat? How would list look different? Look at the HTML, it's clearly a list.

  12. avatar
    wrote this comment on

    I disabled the plug-in but the credit link is still on all of my pages. Can you tell me how to uninstall the link?

    1. avatar
      wrote this comment on

      The plugin is still active, I just checked your site.

  13. avatar
    wrote this comment on

    very useful, thanks.

  14. avatar
    wrote this comment on

    None of the changes I make through the widget are affecting the tag cloud on my page. I have tried refreshing and clearing the cache.

    1. avatar
      wrote this comment on

      The tag cloud widget isn't enabled on your site. Please check the widgets settings page.

  15. avatar
    wrote this comment on

    Thanks for this wonderful Plugin buddy...

  16. avatar
    wrote this comment on

    Hi nicolas,

    Do you know if it's possible to have tags that are one-word hyperlinks to my other site's web pages.

    Thanks,

    Kerry

  17. avatar
    wrote this comment on

    Hi -- Thanks for the widget. I have a question: Do you know why on our site the tags are underlined? I'd like it to look like yours (without them). Thanks.

    1. avatar
      wrote this comment on

      Adding
      <pre>li#better-tag-cloud a { text-decoration: none; }</pre> to your site's css file should do that.

  18. avatar
    wrote this comment on

    The settings for "Number of tags to show" (currently set to 20)and "Force tags with multiple words on one line?" (currently set to Yes) seem to be ignored.

    1. avatar
      wrote this comment on

      That's odd, both work for me. Which version of the plugin and wordpress do you use? Do you maybe use some cache?

  19. avatar
    wrote this comment on

    Error at widget %BEG_OF_TITLE% Tags %END_OF_TITLE%

    How to fix it... my blog gone

    1. avatar
      wrote this comment on

      Please add plugin and wordpress version you're using. If your blog is gone, just disable the plugin or remove it's directory from your plugin folder if you can't access the admin interface.

  20. avatar
    wrote this comment on

    can you add the "exclude" parameter to the widjet form?

    1. avatar
      wrote this comment on

      Oh, right, that has been on my TODO forever. Will look into it soon, thanks for reminding.

  21. avatar
    wrote this comment on

    Hi,
    I am using your plug-in with thesis theme. I want to create a list instead of a linear display, but the 'list' format doesn't seem to be working. What am I missing. Here is the test page. www. eduweave .org/blog

    1. avatar
      wrote this comment on

      Hi sheela, are you maybe talking about my tag cloud plugin? The list/flat setting only changes the HTML, how that is displayed is a CSS issue. Please try the remove CSS setting.

  22. avatar
    wrote this comment on

    I had your template on another blog too http://JohnZajaros. com and everything was fine until I added Google analytics to the footer.php in the theme editor. I have it on the http://TheQuestRevealed. com and all is well. But when I added Google Analytics to the footer.php right above the like it said to, the johnzajaros.com theme added a second "search this blog" box on the header for some reason. TheQuestRevealed.com is fine. I have deleted the theme at johnzajaros.com and reloaded it but the search box comes back at the top, that second "Search on this blog" box. I can't get rid of it. I went into the header code and think I see where the code is duplicated but I am not a code person, so I left it alone. But I really like your theme and would like to use it on all of my blogs. But I need to fix this problem first. Any ideas? I hope I was clear enough.

    John Zajaros
    216-712-6526
    excellencepaidforward@gmail.com

    1. avatar
      wrote this comment on

      Looks fine to me. I guess you fixed it somehow?

  23. avatar
    wrote this comment on

    It took me forever to find this plugin, but it was worth the wait! Thanks so much!

    I was just wondering how to make one little change. I want the post count to be after the tag link. My category links are formatted that way, and it's driving me crazy to have them different from the tags!

    1. avatar
      wrote this comment on

      Do you mean that the counter is not a link? Yes, I think that would be better too.

  24. avatar
    wrote this comment on

    I've tried upgrading to the new version, but when I click the 'Automatically Install' button, the file will not unzip properly. I'm using WP version 2.8.4...but, my hosting company did not have PhP 5.0 on their server at the time of my initial install. I now have it; but, I'm wondering if the unzip functionality is now defunct.
    Any ideas?

    1. avatar
      wrote this comment on

      Do you get an error message? If so please paste it here. You could create a file that contains &lt;php phpinfo();, call it info.php, put it somewhere on your server and open it in your browser to check if zip is available. Is my plugin the only one you have problems with?

  25. avatar
    wrote this comment on

    i was thinking of an option for your tag cloud:
    adding existing categories to tag list... (just a simple checkbox)
    it exist in many other tag plugin and i thind it usefull.
    maybe it depends on site hierarchy/organisation but it helps for mine.

    thanx in advance and congrats for your good job

    1. avatar
      wrote this comment on

      I'll have to look into this. No idea how much work it is.
      In the meantime you should check your WordPress settings, it looks like you configured 192.168.25.254 as your home URL, which basically breaks your blog for everybody not on your local network. See <a href="http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server" rel="nofollow">this page</a>.

  26. avatar
    wrote this comment on

    I really like your format best and the options you've included in your plugin. yugz already asked, but could you add support for categories? I'd also like to be able to use multiple instances of the widget -- one for categories and one for tags. THANK YOU!

    This one does categories if the source will help you :
    http://wordpress.org/extend/plugins/configurable-tag-cloud-widget/

    1. avatar
      wrote this comment on

      Thanks for the link. I wasn't aware that this plugin does categories and will have a look at it. Multiple instances should be possible with the new 2.8 widget API, but I haven't looked into it yet. Last time I looked into it (pre 2.8) it was a total mess.

  27. avatar
    wrote this comment on

    Thank You for today's upgrade! I left a topic in Wordpress - http://wordpress.org/support/topic/319718 . I'm having problems excluding a category and tag with the same name, slug, and term ID.

  28. avatar
    wrote this comment on

    I just upgraded the wordpress plugin 0.8.1.2. it shows as 0.8.1 and the widget title is not displayed. Any ideas? It worked with the previous version.

    1. avatar
      wrote this comment on

      Thanks for the report! A fixed version has been released.

      1. avatar
        wrote this comment on

        Thanks for your swift reply. Can't seem to find the new version though. I only see 0.8.1.2, that is the one giving my this issue. I upgraded from the following source: http://downloads.wordpress.org/plugin/nktagcloud.0.8.1.2.zip Any clues?

      2. avatar
        wrote this comment on

        Thank you Nicolas. Installed it and everything is just fine again!

  29. avatar
    wrote this comment on

    Oh noes!

    I installed the newer version and it doesn't display anything :O

  30. avatar
    wrote this comment on

    OK found the issue - previously the plugin was automatically displaying the results, now it returns them - neded to specify "echo nk_wp_tag_cloud("

    All fixed

    1. avatar
      wrote this comment on

      Right, I changed the function. I wasn't aware that people call them directly. :-) Will have to keep this in mind in future plugin upgrades, thanks for the report!

  31. avatar
    wrote this comment on

    Hi, thank you for that wonderful widget. I very much like the possibility to add categories to the cloud. The only thing to mention is that the exclude list should also apply to category names and not just tags. Don't you agree ... ?

    1. avatar
      wrote this comment on

      Hi Max, absolutely! I'm aware that this doesn't work, but it's a low priority for me, sorry about that. It will take some time until I look into it. There are also problems if you have tags and categories with the same name.

  32. avatar
    wrote this comment on

    Version 0.8.4.1 appears to have introduced another error - it now doesn't work!!

    Did an auto upgrade and it failed at line 19 of nktagcloud.php....

    Issues?

  33. avatar
    wrote this comment on

    (re: my previous post)

    Is the plugin WP 2.8.5 compatible?
    Shall I try another upgrade of the plugin (I've just restored an old version 0.4.0)

    1. avatar
      wrote this comment on

      That's very odd. Line 19 uses the register_sidebar_widget() which is in wordpress core. The plugin is definitely compatible with 2.8.5 (i use it on this site). If you try again and get an error again would you please paste the whole error if there is more?

  34. avatar
    wrote this comment on

    Hello Nicolas,

    thank you for the plugin. Ability to customize tag cloud is a nice feature.

    I was wondering if there's a possibility to show only those tags which have been used more than X times, for example, if I have lots of tags which are used only once (or twice), I would like to not show them in the cloud.

    I was looking into code, but couldn't figure out if it's easily hackable or not.

    Thank you,
    Kaspars.

    1. avatar
      wrote this comment on

      Hi Kaspars, that would be easy to add, I've added it to my todo. In the meantime you can simply limit the total number of tags. I think I can get that feature into the next release.

    2. avatar
      wrote this comment on

      Hi Kaspars, today's 0.8.5 release includes this feature and other improvements.

      1. avatar
        wrote this comment on

        Hi, Nicolas

        A big thank you for the update! You just made my day :)

        Kaspars

  35. avatar
    wrote this comment on

    I just launched a new site ohaskin.com and installed your tag cloud for the first time. I am now going back and adding tags to all of my PAGES (posts were already done) but I am not seeing any change in the tag cloud. Does it only use tags from posts and not pages? Is there a way for it to include pages? Thanks!

    1. avatar
      wrote this comment on

      Hello MattHart,

      are you using a plugin to create page tags? To my knowledge WordPress doesn't support that out of the box. So yes, the plugin only uses tags from posts.

  36. avatar
    wrote this comment on

    Nicolas

    I am complete newbie to Wordpress/themes/plug ins etc.

    I am just setting up my site and cannot work out how I can configure your plug in. Can you help and point me to where I can find the configuration option. I am running a theme and have been looking in both that dashboard, the main WP dashboard and the Widgets section.

    Thanks in advance for your help and your plug in.

    Chris

    1. avatar
      wrote this comment on

      Hi Chris, the options page is under Settings -&gt; Better Tag Cloud. The widget itself links to the settings page too. Maybe you looked at the "Tag Cloud" widget, this plugin's widget is called "Better Tag Cloud".

  37. avatar
    wrote this comment on

    Hey,

    I'm just passing by to thank you for this pluggin. I'm currently using it on my blog www.logisticadescomplicada .com and it helped me fixing an issue I had before!

    Cheers!

  38. avatar
    wrote this comment on

    I really like this plugin. I just updated to the latest version of this plug-in, but it is not working properly (and I haven't touched the code). It is properly displaying the categories used on the posts, but the link is not working (shows http://sitename.com/?tag= for every category). Is this something you've encountered before?

    1. avatar
      wrote this comment on

      Hello Eric, that's strange. I have tested it on my development server (wp 2.8.5) and it works with and without permalinks for me. You could try to deactivate your other plugins. If the tag cloud works again, add them back one by one.

  39. avatar
    wrote this comment on

    I can't get the css of this to show up on the page!

    1. avatar
      wrote this comment on

      Hi Phil, looks fine on your site. You could have deactivated the CSS in the plugin options, or your template doesn't have a wp_head call.

  40. avatar
    wrote this comment on

    Hey there I've been having a problem with the plug-in. I created my Wordpress Theme using Artisteer and installed Wordpress on my web host.

    I've installed the Better Tag plug-in from: REMOVED and installed it successfully. I activated the plug-in and am able to access the configuration settings but don't know how to make the tags display in different sizes??

    Is there a problem with my theme?

    Here is a link to my website: REMOVED

    Your help would be much appreciated :-)

    1. avatar
      wrote this comment on

      Hi Kiley, it doesn't look like you use my widget at all. You have to drag it into your sidebar on the widgets page. The tags will all have the same size if the number of articles associated with a tag are equal.

  41. avatar
    wrote this comment on

    Works great... easy to use!!! Thanks for this plugin!

  42. avatar
    wrote this comment on

    Nice plugin, but one small issue (the same one Eric has).

    Having looked into your code I have fixed the issue (category links will not be built from the function get_tag_link):

    On line 143 in inc/page.php change
    $link = get_tag_link( $tag-&gt;term_id );
    to
    if ( isset($tag-&gt;cat_ID) )
    $link = get_category_link( $tag-&gt;term_id );
    else
    $link = get_tag_link( $tag-&gt;term_id );

    1. avatar
      wrote this comment on

      Ok, I have added your fix and made a 0.8.9 release which should be available for download in a few minutes. I'm really a little puzzled how this bug made it into an official release..

    2. avatar
      wrote this comment on

      Hi Dave, you're right! I will fix this asap.

  43. avatar
    wrote this comment on

    Hi Nicolas,

    Nice plugins you have written.

    Would it be possible to add a function to include/exclude categories? That would be really nice!

    1. avatar
      wrote this comment on

      Hi Georg, I'll have to look into this. Might take some time though.

  44. avatar
    wrote this comment on

    PS: There are a number of strings that are not yet internationalized. To wit http://easycaptures.com/fs/uploaded/422/1366134344.png

    1. avatar
      wrote this comment on

      These strings are internationalized. Where did you get the translation from? It looks like the translator didn't use the pot file that comes with the plugin.
      If anybody localizes the plugin I'd like to include their work in the official release. Users shouldn't have to download separate translation files.

  45. avatar
    wrote this comment on

    Hello Nicolas,

    I tried your plugin for one of my site. I have configured it properly but the tags are not visible in the Better Tag Cloud section on the site.Also the when I give one tag in the Included Tags section of configuration page it comes on the site but not all the tags I used in my posts.

    Please suggest what m doing wrong.

    Thanks

    1. avatar
      wrote this comment on

      Hi Rahul, looks fine to me. If you give tags to include they are the only tags that will be shown, that is expected behaviour.

  46. avatar
    wrote this comment on

    Fantastic! I was really unhappy with the default Tag Cloud where I had no control over the font size. Very ugly. Installed yours and a quick glance at the options and I have presentable tags. Haven't had time to play with all of your features, but sure glad you did this! Keep up the good work. Thanks!!!

  47. avatar
    wrote this comment on

    Tu dois utiliser windos toi non?
    you should not be a mac user Right?

    1. avatar
      wrote this comment on

      I use <a href="http://www.debian.org" rel="nofollow">the universal operating system</a> mostly.

  48. avatar
    wrote this comment on

    Thanks for the plug-in, Nicolas. I'd love to get mine looking as good as your cloud at the top of this page. But as a coding numbskull, I can't see how to do it. Any chance of some simple instructions?

    PS… Can you tell me how I get rid of the title tags if I don’t want a title?

    1. avatar
      wrote this comment on

      Hey David, I forgot to reply to you earlier, sorry. The next release will probably contain some code to generate such colors automatically, I'll just have to find a little time to think about it.

  49. avatar
    wrote this comment on

    nice plugin. used in my blog. tks

  50. avatar
    wrote this comment on

    good plugin. but i like the flash one better.

    1. avatar
      wrote this comment on

      Well, to each his own I guess :-D

      Btw, your link to the flash one didn't work, so I removed it.

  51. avatar
    wrote this comment on

    Hey, I'm having trouble with your plugin. I uninstalled it, but for some reason a text link to your homepage appears on my main page.
    How do I get rid of it?

    1. avatar
      wrote this comment on

      I see it's gone. Actually, it's impossible that the links stays once the plugin is uninstalled. :-)

  52. avatar
    wrote this comment on

    Hello,
    I translated Better Tag Cloud into French.
    The translation is available here
    http://liseweb.fr/BLOG/better-tag-cloud-afficher-un-nuage-de-mots-cles-avec-wordpress-2-9

    and here
    http://liseweb.fr/BLOG/wordpress/plugins/les-plugins-que-jai-traduits-en-francais

    MfG
    Lise

    1. avatar
      wrote this comment on

      This is great, thank you Lise! I will include your translation in the next release.

      Merci beaucoup!

  53. avatar
    wrote this comment on

    Hey Nicolas great plugin by the way!

    I just have one problem.

    I installed the plug-in to one of my sites but the tag cloud looks quite squashed (vertically). Is there some coding/configuration that I need to do to format the tag cloud like the one above and below?

    Thanks in advance

    1. avatar
      wrote this comment on

      Just one other question is how do you configure the tags to display in different colours?

      Many thanks!

      1. avatar
        wrote this comment on

        Hi Kiley, those things can all be changed through CSS. I've been working on something to generate colors etc dynamically, but it's not ready yet.

  54. avatar
    wrote this comment on

    Great plugin. I would like to know how to make my tags look in different colors like your demo above.

    Thank you

    1. avatar
      wrote this comment on

      I will add colored tags in the next release, stay tuned!

    2. avatar
      wrote this comment on

      I have added an option to automatically color the tags. It's very basic and may or may not work depending on your theme's CSS styles. I'm uploading the 0.8.12 release right now.

      If you don't like the colors you can have a look at css/page.css in the plugin's directory and create your own CSS styles.

      I'd love to add a generator where users can pick colors but I'm just too busy atm.

  55. avatar
    wrote this comment on

    Hey and thanks for a great plugin. I'm using it on several blogs, for example http://www.parafovea.com.
    I was going to ask about excluding categories by id number but I see that there are already several requests for this. So one more vote for that feature!

    1. avatar
      wrote this comment on

      Hi, this is already possible, just use the exclude field.

  56. avatar
    wrote this comment on

    With the latest update the tag cloud ALWAYS displays in list format regardless of the admin panel setting...Is this just me or is anyone else having an issue?

    1. avatar
      wrote this comment on

      You are right, I just uploaded a fix that should resolve this issue. Thanks for the report!

      1. avatar
        wrote this comment on

        Thanks for the fix. All is good!

      2. avatar
        wrote this comment on

        The problem is not fixed at all. I just uploaded the latest 8.12.2 while the same issue like STeve described still exist....

        I see no admin panel settings like the previous version

        the files : css/page.css and css/admin.css shows "not activated", others are activated

      3. avatar
        wrote this comment on

        Hi Michael, I'm afraid I don't understand what you mean.

  57. avatar
    wrote this comment on

    page.css file is missing in CSS folder...???

    http://s61.radikal.ru/i172/1001/57/e65c2c508f6f.jpg

    1. avatar
      wrote this comment on

      You are right, thanks for reporting this. I'm just uploading a fix.

  58. avatar
    wrote this comment on

    I would like to see a log file on your site that lists the changes in each release that I can review before downloading the new release. You already have this info in the readme.txt file AFTER I download. How about making this available BEFORE I download? Thanks.

    1. avatar
      wrote this comment on

      The changelog is available here: http://wordpress.org/extend/plugins/nktagcloud/changelog/

  59. avatar
    wrote this comment on

    hi nocolas,

    great plugin. but one problem. changing font size and units doesn't change the tag cloud display on the page. eg: changed to 8/20 px. still: 8/22 pt visible on the blog. even tried hardcoding it in your plugin. no effect...help!

    cheers
    ff-webdesigner

    1. avatar
      wrote this comment on

      Looks fine to me on the page you linked. I did remove all links from your comment though... if you really have problems I suggest http://www.w3.org/TR/CSS21/cascade.html

  60. avatar
    wrote this comment on

    Love the plugin, but would it be possible to change it so that 'span class="nktagcloud_counter"' and 'span class="nktagcloud-separator"' tags don't show up in thre source code if you don't use counters/separators?

    1. avatar
      wrote this comment on

      Hi Carolin, thanks for bringing this to my attention. I'm just uploading the fix.

  61. avatar
    wrote this comment on

    What am I doing wrong? I install the plugin, configure it, drag it to my sidebar and it still looks plain. What am I missing?

    1. avatar
      wrote this comment on

      It looks like every tag on your blog is only used once. Thus all tags have the same size.

  62. avatar
    wrote this comment on

    Hi Nicolas,

    Just wanted to say thank you for this plug in. It was so easy to install and use right off the bat and it's much prettier than the default one :)

  63. avatar
    wrote this comment on

    Nice plugin.
    I don't use widgets. This plug-in has a shortcode for an insert in sidebar?

    1. avatar
      wrote this comment on

      Hello Komarik, no, shortcodes can't be used in the sidebar. But you can use something like

      <code>
      if ( function_exists( 'nk_wp_tag_cloud' ) ) {
      echo nk_wp_tag_cloud( "post_id=1234" );
      }
      </code>

      This works with the new 0.10.0 release, not sure about older versions.

  64. avatar
    wrote this comment on

    Hi Nicolas,
    Better Tag Cloud - a great plugin, thanks a lot!
    I have a bilingual website with English &amp; Bulgarian versions.
    I run on 2.9.1 and use your latest version of your plugin (updated yesterday)

    It's all fine in the English version but in the Bulgarian, I cannot make the tags work. They are there but once you click on them it's 404 Not found.
    Could you please have a look and tell me what's wrong: http://sharemykitchen.com/bg/

    I desparately need the tags to be working on both languages.

    Thanks in advance.

    Sergey

    1. avatar
      wrote this comment on

      Hi Sergey,

      can you tell me which plugin you use to build your site? I guess I'm not applying some filter to the output that your plugin depends on.

  65. avatar
    wrote this comment on

    Hi Nicolas, thanks for the reply.

    The plugin is the Better Tag Cloud and the theme is Atahualpa 3.4.1 if that's what you ask. I hope this is helpful.

    1. avatar
      wrote this comment on

      No Sergey, I need to know which multilingual plugin you use. The one that lets you have a blog in more than one language.

  66. avatar
    wrote this comment on

    Ok, I've got you now..

    It's WPML Multilingual CMS

  67. avatar
    wrote this comment on

    How can I use automatic colors for the tag cloud in the wp_tag_cloud() function?

    1. avatar
      wrote this comment on

      Hi Pavel, that's not possible. I suggest you add the style definitions from the plugin to your theme. Or simply enabling them on the options page could work as well, not sure about that.

  68. avatar
    wrote this comment on

    Hi Nicolas, I just want to add some more info to my problem, in case this might be of help to you.

    I have noticed that search engines do not index my Bulgarian posts (my default language is English)but only the pages in Bulgarian - it's kind of weird.
    So it's like my tags and posts in Bulgarian are not working, and I can't see the realation between the two.

  69. avatar
    wrote this comment on

    The problem still stays the same, none to do with cascading css. The inline styles coming out of better tag cloud are not as set in the plugin admin. Search for albert kreuz blog. in the source of better tag cloud you will see e.g. font-size: 22pt;. But in the admin the setup is 6 to 14 px. No changes are being used... mail me for access to the blog if you'd like to see it yourself!

    1. avatar
      wrote this comment on

      I don't know what to say. This code works perfectly for me. Please use the contact form to send me a login to that blog and I'll have a look.
      One day I'll add an option to remove the hardcoded fontsizes, but it's a low priority as it's how WordPress does the tag cloud by default anyway and it can be overridden with an !important rule.

  70. avatar
    wrote this comment on

    can i make the tag list in your plug in like this

    A,B,C,D,E,F,G,H,I,
    J,K,L,M,N,O,P,Q,R,
    S,T,U,V,W,X,Y,Z

    or

    2010,2009,2008,2007,
    2006,2005,2004,2003,
    2002,2001

    1. avatar
      wrote this comment on

      That should be no problem with one of the order options.

  71. avatar
    wrote this comment on

    My last attempt to comment didn't seem to work, so I am trying again.

    Great plugin, but I for me the "Show only tags that have been used at least so many times" option doesn't seem to work. I have it set to 3 and tags that appear only once are in the tag cloud. My blog is <a href="http://www.stubbornmule.net" rel="nofollow">here</a>.

    1. avatar
      wrote this comment on

      Hi, you don't seem to be using my plugin, you need to add it to your sidebar.

  72. avatar
    wrote this comment on

    I tried ur plug in on my site (http://www.pathofysiologie.nl/) but it didnt work, cuz I dont have posts, all my content is in pages. is it possible to make a change in the code so the tag cloud works for page contents too?

    1. avatar
      wrote this comment on

      I think that there are plugins that add tags to pages, but I haven't used one yet. WordPress itself doesn't tag pages, unfortunately.

  73. avatar
    wrote this comment on

    Update works! Thanks for the quick response.

  74. avatar
    wrote this comment on

    Is it possible to justifie the tags in the Tag-Cloud like your comment-texts?
    so that there is no free space on the right side?

    hopefully you understand what i mean :)

    1. avatar
      wrote this comment on

      Hi Dave! You can probably get that effect by using the "flat" display format (iirc) and setting the CSS styles to text-align :justify.

      1. avatar
        wrote this comment on

        Sorry for posting this questing a second time today :-/

        I changed it to "flat" and also changed one entry in page.css (first one) but that didnt help...

  75. avatar
    wrote this comment on

    Hi!

    I would like to ask.
    How can i embed the cloud just like you did it on this page.

    Thanks and regards

    1. avatar
      wrote this comment on

      Just put [nktagcloud] somewhere into a post or page, that should do.

  76. avatar
    wrote this comment on

    nice widget... Thanks for it..

  77. avatar
    wrote this comment on

    hi

    need the php code for direct theme add.

    thanks

    1. avatar
      wrote this comment on

      The cloud can be produced by calling nk_wp_tag_cloud();

      Please see inc/page.php for parameter documentation.

  78. avatar
    wrote this comment on

    Thanks for this nice widget. Very helpful.

    1. avatar
      wrote this comment on

      Dankeschön!

  79. avatar
    wrote this comment on

    This really is an excellent plugin and I now have it installed on two websites. It is simple to set up and does exactly what I need it to with no problems.

    What really helps is that you respond to everyone's questions - it's what ultimately made me decide to use your plugin and not someone else's. Thanks.

    1. avatar
      wrote this comment on

      Thank you!

  80. avatar
    wrote this comment on

    First: thank you for the plug-in!
    Second: I'd love to give props where due, but seems to be competing with the them copyright at the bottom of the page - any thoughts?
    Third: EXCUSE the novice question (I am new to WP and all its features), but the only tags present in the cloud are from the categories. Do I simply just not have enough entries at this point to have more populating the tag cloud?

    1. avatar
      wrote this comment on

      Theme developers often don't pay attention to styling the wp_footer links. Simply disable it, I don't mind :-)
      If I remember correctly post tags are always shown. Do you have post tags?

  81. avatar
    wrote this comment on

    Hi,

    There is something I don´t understand. The plug-in is installed and activated. But where do the tag-choices appear?

    Gunilla

    1. avatar
      wrote this comment on

      Hello Gunilla,

      I'm not sure what you mean? There is a widget in the widget section: Better Tag Cloud. You can choose which tags to display on the plugin settings page. This happens by ID though, so it's not like there are checkboxes or something like that.

  82. avatar
    wrote this comment on

    Nicolas,

    Thanks for this plug-in!
    I have installed it on my site blog and want to display a "flat" version of the tag cloud instead of the list version. However, when showing flat version, the tags start on the same row as the title of the widget. Is there a way to fix this?
    Other than this small display issue, this is a great plug-in.

    rankabove.com/blog/

    Thanks,
    Kalman

    1. avatar
      wrote this comment on

      Hm, I would guess including the default css styles of the plugin should fix the issue. If not, maybe your theme wasn't coded properly. For example, there's no H7 tag..

  83. avatar
    wrote this comment on

    Hi. This is an excellent plugin! I have a question though. The theme that is being used for this blog doesn't use widgets to include info into the sidebar, it is an R-sidebar.php file. Will your plugin work with this theme? If so how do I make it work? Thanks!!

    1. avatar
      wrote this comment on

      Hello Kate, sure, the plugin can work without widgets. There are some notes on this page: http://wordpress.org/extend/plugins/nktagcloud/
      It might be easier to widgetize your theme though, as described on
      http://www.themelab.com/2008/04/18/see-how-easy-it-is-to-widgetize-wordpress-themes/
      for example.

  84. avatar
    wrote this comment on

    Great Plugin!
    Unfortunately it seems to have a bug: When I try the sort option "both" I'll receive instead of the widget the following error message:
    Fatal error: Cannot redeclare compare_both() (previously declared in /HIDDEN/wordpress/wp-content/plugins/nktagcloud/inc/page.php:304) in /HIDDEN/wordpress/wp-content/plugins/nktagcloud/inc/page.php on line 304

    1. avatar
      wrote this comment on

      Hm, that error doesn't make any sense. I've seen similar errors with PHP when using opcode cachers like APC, xcache etc. Try disabling them if you use any.
      But I should rename the function anyway, the name is too generic. I'll release an update in a few minutes.

  85. avatar
    wrote this comment on

    I just activated your plugin. It's way better than the default tag widget. Thanks for this contribution.

  86. avatar
    wrote this comment on

    Hi,

    First off, thanks for the great widget!

    I'm using it with the Arthemia theme and everything works except the random font size, it stays with the standard font designated by the theme. I've browsed through the css and didn't see where to edit it. Have you had any experience with this theme or would you be able to assist?

    Thanks kindly,

  87. avatar
    wrote this comment on

    Hi Nicolas,

    Thanks for the great plug-in!

    I need to add some left padding to the tag list. I looked in Firebug but don't see a div with a class or ID surrounding the list. I can't apply my style to better-tag-cloud or or widget-nktagcloud because that would mess up the widget title styling. Is there anyway that I can wrap the tag list in a div with an ID or class so I can style it?

    1. avatar
      wrote this comment on

      <code>
      .widget-nktagcloud ul { foo }
      </code> or something similar should work I imagine

    2. avatar
      wrote this comment on

      I think I got it. I need to set the format to list and then style the list with list-style: none and display: inline and I can finally use your original suggestion to style the overall list.

  88. avatar
    wrote this comment on

    Thanks for a good work! I suppose, I've detected one small bug - "inject_count" parameter doesn't work, when calling it from nk_wp_tag_cloud() callback. Looks like it was accidentally forgotten during one of the last upgrades.

    1. avatar
      wrote this comment on

      Hi Wiseman! Hm, that's odd, it seems to work for me in the shortcode and the widget, which both call nk_wp_tag_cloud(). Maybe a typo? Can you give a code example that doesn't work?

  89. avatar
    wrote this comment on

    Hey Nicolas and thank you for the plugin.

    I want my tags to appear neax to each other, on the same line, and not that every tag occupy a complete line (unless it is mutliple words of course)

    I set it to Flat, and to List, but it is the same. How can I make them appear one next to each other, and not every single one, on every single line?

    Thanx

    1. avatar
      wrote this comment on

      Hi Mouad, sounds like a CSS issue. Are you using <code>display: block;</code> maybe?

  90. avatar
    wrote this comment on

    Okay, thank you. after a long time of testing, I figured that I can find:

    .sidebar1 ul li a:link, .sidebar1 ul li a:visited {

    and change the display property to:

    display:-moz-grid-group;

    You could simply tell me that, and I am done :)

    But its okay now, and thank you again.

    1. avatar
      wrote this comment on

      -moz-grid-group doesn't sound like it will work in all browsers, you should test that. I'm sorry I can't give CSS support here, but there are enough places where you can get help with such stuff.
      If you're interested and willing to pay I provide professional services, please check my services page.

  91. avatar
    wrote this comment on

    I know there is a lot of options... But I need at least the title of the widget to be configurable right on the widget config screen, to localization of that text (via WPML).

    1. avatar
      wrote this comment on

      I have no idea what wpml is. The title is printed through <code>echo apply_filters( 'the_title', $config['title'] );</code>

  92. avatar
    wrote this comment on

    Is it possible to have the better tag cloud appear in my sidebar and my footer widget at the same time?

    Thanks and looking to hear from you.

    1. avatar
      wrote this comment on

      Hi Tan, no that's not possible. Yet. I will add that feature in a future release. Right now it's missing to keep the plugin compatible with older WordPress releases.

  93. avatar
    wrote this comment on

    Nice work Nicolas! I now have a better tag cloud for a 10 minute investment of time (and a small PayPal gratuity). 2 minutes to download and setup and the rest to find the answers to my questions. Now all I need to do is figure out how to get the underlines to go away (selecting none for decorations did not do it). Thanks very much!

    1. avatar
      wrote this comment on

      Hi Dave, thank you! I assume you mean in the widget?
      Try to put the following code in your theme's style.css:
      <code>
      .widget_nktagcloud a {
      text-decoration: none !important;
      }
      </code>
      I hope this works.

  94. avatar
    wrote this comment on

    Hi Nicholas, can you help me with asmall modification?
    I have images associated with many of my tags and I want to show them in a cloud, or list instead of the tag words.
    at the moment a tag is shown like
    <code>href="http://example.com/tag/mytag"</code> and I would need to change this to <code>href="http://example.com/wp-content/tagdir/mytag.gif"</code>
    Is that possible and where would I make that change?

    1. avatar
      wrote this comment on

      Hi Richard, to be honest, I have no idea what you mean. It sounds like you are using some custom code? Some other tag plugin? Or do you use my plugin? It doesn't do tag-image relations. Sounds like a nice feature though.

  95. avatar
    wrote this comment on

    Hi Nicolas,

    I'm Domicio Neto and I'm from Brazil.

    I have one question for you.

    In my site, I have the plugin but I don't want to display Tag and yes only Category.

    How do it? I don't have idea.

    Thank you so much and congratulations for plugin.

    1. avatar
      wrote this comment on

      Hi Domicio, that's not possible at the moment. I think the feature could be added though, I'll look into it for a future release.

  96. avatar
    wrote this comment on

    Hi Nicholas,
    I installed your tag cloud plugin but it's not showing up. I feel I'm missing a basic step in the installation. Although I risk looking like an idiot, I have to ask how to get this working...do I have to change the code on one of the Wordpress pages?
    Thanks,

    1. avatar
      wrote this comment on

      Hi Phil, you shouldn't have to change anything. There is a widget (if your theme is widget-ready) and the shortcode, as described in the readme.txt. Good luck!

    2. avatar
      wrote this comment on

      Hi. Yuu have to go the Appearance &gt; Widgets in your admin interface and move the Better Tag Cloud widget into your sidebar. Then you will see it on your blog.

  97. avatar
    wrote this comment on

    Thanks! I'm testing this, and it seems to be working well.

  98. avatar
    wrote this comment on

    Thanks for the plugin. I works like a treat.
    Assuming I don't want to put the widget into the sidebar, what is the code I can use in the sidebar.php file.
    is it. I tried using - , but doesn't work.
    Any clue?
    Thanks for your help.

    1. avatar
      wrote this comment on

      Hi Technology Blog, there are various ways to include the tag cloud on your site, they are all described on http://wordpress.org/extend/plugins/nktagcloud/

  99. avatar
    wrote this comment on

    I tried your plug-in, however, it doesn't gel with my theme. After deactivating it, I noticed that the plug-in jacked the built-in tags link that appears under each post.

    The tags themselves are still present, but the link to the Tags page is broken.

    1. avatar
      wrote this comment on

      Disregard, I made the corrections.

      1. avatar
        wrote this comment on

        Hi Scott, did you find out why the links were broken? Was it caused by my plugin?

  100. avatar
    wrote this comment on

    Great plugin! We're using it on selected blogs at the PSOUG.org site (http://psoug.org/blogs/).

  101. avatar
    wrote this comment on

    I would so love to use this plugin - it looks so cool - but now that I've installed it on wordpress and activated it I don't know what to do next. Nothing seems to be happening at all and I don't know what "Add the widget in your dashboard's Design section and configure it as you like" means exactly. My dashboard doesn't nave a section named design.

    1. avatar
      wrote this comment on

      You can manage widgets on the Appearance-&gt;Widgets page. There should be a widget named Better Tag Cloud.

  102. avatar
    wrote this comment on

    great plugin, but I think I prefer like if min color in #aaaaaa and max color in #000000 ?

    Are u know my purpose?

    and what Tag separator should I fill if I want to give white space?

    Please answer.. thanks..

    1. avatar
      wrote this comment on

      You can change these two things by using your own CSS.

      1. avatar
        wrote this comment on

        okay, thanks

  103. avatar
    wrote this comment on

    Hi Nicolas

    I wanted to explore your plugin when calling from php code but I does nothing. My code is like if ( function_exists( 'nk_wp_tag_cloud' ) ) {
    echo nk_wp_tag_cloud( 'single=yes&amp;separator= - &amp;categories=no' );
    echo 'exists';}
    else
    {echo 'doesnt';
    } I can see the 'exists' but nothing else. If I use the standard wp_tag_cloud function it displays the tag cloug. Any idea?

    thank you

    R

    1. avatar
      wrote this comment on

      <code>single=yes</code> only shows tags of the current post, so no tags on pages, the blog page etc.

      1. avatar
        wrote this comment on

        Hi Nicolas

        cool. That solved my issue.

        Can I make your nk_wp_tag_cloud function to use all the settings from admin panel?

        Thank you

        R

      2. avatar
        wrote this comment on

        I meant if I can set up all settings in admin area of wp and then just call nk_wp_tag_cloud and it would use these values. So I would have to read any docs at all :-)

        R

      3. avatar
        wrote this comment on

        You can use <code>nktagcloud_the_cloud()</code> for that.

      4. avatar
        wrote this comment on

        I used <CODE>echo nktagcloud_the_cloud();</CODE> but I recieved Warning: Missing argument 1 for nktagcloud_the_cloud(), called in ...
        can I fix that? Thank you. R

      5. avatar
        wrote this comment on

        Right, sorry, nktagcloud_the_cloud is the wrong function. Please see below for the new documentation. I'll make a plugin update if this helps you.

  104. avatar
    wrote this comment on

    I want to use two tag clouds. One that will exclude a single (Quote) tag group and another that will only include the Quote tag group. Looking at the code directly according the book it shouldn't take much. Biggest problem is finding where the tag_cloud command is to edit it.
    Ideas appreciated. I've just started working with WordPress so I wouldn't be surprised if the answer was in front of my face...

    1. avatar
      wrote this comment on

      See the comment below with the updated docs. Use <code>nk_wp_tag_cloud()</code> for the second cloud.

  105. avatar
    wrote this comment on

    I had to look at the code again and I've updated the plugin's readme to contain this text:

    = Using the tag cloud in your theme =
    You can call the function `nktagcloud_shortcode()` from your theme to get the same output as from the shortcode.

    There's also the `nk_wp_tag_cloud()` function. You can use it to generate a tag cloud with a different configuration than the plugin's one. It accepts the same parameters as <a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud" rel="nofollow">http://codex.wordpress.org/Template_Tags/wp_tag_cloud</a>. Example:
    <code>
    if ( function_exists( 'nk_wp_tag_cloud' ) ) {
    echo nk_wp_tag_cloud( 'single=yes&amp;separator= - &amp;categories=no' );
    }
    </code>

    Additonal parameters (all strings):

    * single: Only tags of the current post ('Yes', 'No')
    * categories: Inlude categories in the cloud ('Yes', 'No')
    * replace: Convert blanks to non-breaking spaces ('Yes', 'No')
    * post_id: Display only tags of the specified post (post ID)
    * mincount: Show only tags that have been used at least so many times
    * separator: Tag separator
    * inject_count: Add a counter to the tag ('Yes', 'No')
    * inject_count_outside: Add the counter outside of the tag hyperlink ('Yes', 'No')

    1. avatar
      wrote this comment on

      hi Nicolas

      I tried echo nktagcloud_shortcode(); and it still gives me the 'Warning: Missing argument 1 for nktagcloud_shortcode(), called in...' but it also displays the tag cloud :-)

      Thank you

      R

  106. avatar
    wrote this comment on

    what Tag separator should I fill if I want to give white space?

    Thanks

    1. avatar
      wrote this comment on

      that should be done with CSS

  107. avatar
    wrote this comment on

    Hi Nicolas,

    Just wanted to thank you for the great plugin, for the amazing amount of work that you do with WordPress that many of us benefit from, and to offer a small suggestion.

    I couldn't help but notice that rather silly forum thread on WordPress.org re: 'Inserting promotional links into the page'.

    Here is my suggestion - Why don't you put the link in the actual plugin widget? Something tastefully discrete yet present. I would have left the links in if they were not placed in the footer (and I appreciate you providing the option to easily remove them). :-)

    Why did I remove the links from the footers? Well I'm using a WPMU Installation with a bazillion different themes. Footer content formatting seems to be a rather neglected area amongst theme-builders...not that I'm complaining...it's just that that often the themes are great but the footer content is a mess and I have to spend time modifying each theme. By placing your promo links in the footer, you are pretty much at the mercy of themes as to how it presents your links...and often where... :-)

    Anyway, thanks again.

    Cheers

    Stephen G

    1. avatar
      wrote this comment on

      Hey Stephen, I like your suggestion and will implement it. Thanks!

      Btw, I will remove the links for the default install in a future release. Wordpress.org has changed their rules for plugins. Once it was enough to be GPL2, but now there's rule X, unpublished rule Y etc...

      I may have to think about which features can't be used without enabling the link. Something I wanted to avoid. I wanted to give users total control, but apparently that's not good enough. :-?

  108. avatar
    wrote this comment on

    Is there a way to add "nofollow" to the cloud?

    1. avatar
      wrote this comment on

      There is in the upcoming 0.11.0 release.

      1. avatar
        wrote this comment on

        By the way.... why on earth do you want nofollow on the tag cloud?

  109. avatar
    wrote this comment on

    Hi, I installed the plug-in and note one small error. When you add a "separator" you are putting the separator after the last word, e.g.:

    tag1, tag2, last_tag,

    Can you not insert the separator after the final tag in your next update, please!

    1. avatar
      wrote this comment on

      Hi Scott, that can be configured in the new 0.11.1 release, thanks for the report!

      I didn't make it the default though, as some people might rely on the last separator being there.

  110. avatar
    wrote this comment on

    Please, can you tell me how to put php "A Better Tag Cloud" inside my archive template?
    I was trying to put this:

    but without success.
    Thanks!

    1. avatar
      wrote this comment on

      Hm, you didn't paste any code :-) Did you look into the readme.txt?

  111. avatar
    wrote this comment on

    Great a widget. Very thanks.

  112. avatar
    wrote this comment on

    I like the plugin a lot. It has the possibillities I missed in the original. Still, I had to tweak a little bit.

    In inc/page.php, I've modified $tagsize_int to be round($tagsize), and added a new var $tagsize_round as round($tagsize,1) to be used in style font-size. This makes colorization a little better, and the font-sizes doesn't end up with five decimals.

    By the way, what scheme did you use for the color stepping in page.css? I'd like to widen the size range, but want to continue the color pattern.

    Also, colorization only works successfully when using "pt"-sizing. Is there by any chance an easy fix you could come up with to name the css class numbering differently from the size?

    1. avatar
      wrote this comment on

      Hi Espen, thanks for the report! I'll look into the issues you described asap.

      I used some online CSS gradient generator for the colors, can't remember which one. You should probably modify the colors so that they match your blog's style.

  113. avatar
    wrote this comment on

    Hello,
    i'd like to know if it's possible to center all the tags ? I did it for the sidebar but taht affect all the widget, i'd like that only the tags f my cloud would be in the center of the sidebar.
    Thanx a lot

    1. avatar
      wrote this comment on

      You can center the tag cloud itself. I'm not sure, I think it has the class <code>widget_nktagcloud</code>. Or just check your site's source ;-)

  114. avatar
    wrote this comment on

    I cannot see the array option in the dropdown. Only list and flat. Do I need to change it in the editor?

    Thanks - great plugin.

    1. avatar
      wrote this comment on

      Hi Brandon, I'm not sure what you mean?

      1. avatar
        wrote this comment on

        You are not the first!

        I want to know if I can make the tags show up in different sizes (in the "array" format, right?). Just wondering how to do that.

        1. avatar
          wrote this comment on

          There is no array format. What are you trying to do?

          1. avatar
            wrote this comment on

            I'm trying to have the tags show up in differing font sizes. Pardon my ignorance.

            1. avatar
              wrote this comment on

              Well you have to change the settings for "Smallest font size" etc. The are on the plugin's options page.

  115. avatar
    wrote this comment on

    Thanks for the plugin, Nicolas.

    I don't know if anyone's pointed this out, but on the changelog page, a lot of the dates are 2009-mm-dd when they should be 2010.

    So even though you updated the plugin last month, people that look at the changelog may think that it hasn't been updated in a year!

    1. avatar
      wrote this comment on

      Hi Ashwan, thanks for spotting this! I guess that's what I get for copy and paste without using my brain :-D

  116. avatar
    wrote this comment on

    newest version shreddered my design, any idea why this is so?

    1. avatar
      wrote this comment on

      No. A link to your site would help though.

  117. avatar
    wrote this comment on

    I am using your Better Tag Cloud plugin. But there is one thing that i really miss: How can i justify the tag cloud?
    The default text-style is "right" and i dont know how to change that...

    Thanks for the plugin anyway!! :)

  118. avatar
    wrote this comment on

    Thanks for this great plugin!!! I won't miss it! I have a question: since the latest update I have the new and the old widget and the old setting (configuration) page too. That is confusing... why are there 2 different setting pages? I liked the config page of the old widget more than the new drop down config of the new widget. It gives me a better overview.

    1. avatar
      wrote this comment on

      Yeah, I know this isn't perfect. I'm not sure yet how I will handle this in the future. Maybe the very first widget instance could be on the settings page, but that could be rather confusing. I'll have to test a few things when I have the time. Thanks for the feedback.

      1. avatar
        wrote this comment on

        Nevertheless it's the best tag cloud widget - you did a great job. Thumbs up!

        1. avatar
          wrote this comment on

          Thanks! :-)

  119. avatar
    wrote this comment on

    perfectly cool...install it right way.

    1. avatar
      wrote this comment on

      I'm glad you like it

  120. avatar
    wrote this comment on

    I like it, it&amp;acirc;

  121. avatar
    wrote this comment on

    Tolles Widget, Spende kommt vielen Dank für die gute Arbeit.
    Great widget i will donate. Thanks for the work you did.
    Dirk

  122. avatar
    wrote this comment on

    Hi Nicholas. This plugin looks nice. Reading through the comments, it looks like color was added to this some time ago. But I don't see any color controls on the widget's panel, and my output is all one color.

    Also, I'm unable to get the Exclude category ID to work. But Include category works as expected. Thank you!

    1. avatar
      wrote this comment on

      Hi. Please make sure you're really using the Better Tag Cloud widget, not the default one. The colors of the cloud can be overridden by the theme, it's in the CSS. Also, you can not exclude categories, only tags.

  123. avatar
    wrote this comment on

    Hi nicolas, sounds like a great plugin, the idea is certainly great, but I can't get the widget in the sidebar. When I click on it in the widget overview to place it onto the sidebar it doens't move, all it does is select the text. Also it messes with the font of the widget overview. Kind of hard to explain what's happening, but maybe you've seen this before and know what I can do to get it working.

    1. avatar
      wrote this comment on

      Hm, maybe you are using some other plugin that modifies the admin area? I've never seen what you describe. If you send me a login to your blog I could have a look, please use my contact form for that.

  124. avatar
    wrote this comment on

    Hi Nicolas, I'm using BTC on my blog's About page, but the tag pages generated don't seem to serve up any content. Can you suggest what could be wrong? Thanks.

    1. avatar
      wrote this comment on

      I'm not quite sure what you mean. Do you use tags on your articles?

      1. avatar
        wrote this comment on

        Yes, I tag each post, and a tag cloud appears on my About page. If I click on a tag, however, I don't get a list of posts with that tag.

        1. avatar
          wrote this comment on

          There is no tag cloud on your about page.

  125. avatar
    wrote this comment on

    Hi Nicolas, thank you for the plug-in. Just having difficulties creating a category only tagcloud. When I list 'category' under the taxonomy field and add categories in the other field it seems to give both the category AND the post tags. Probably something very simple, but am still trying to have only the categories showing. Appreciate any help, thank you.

    1. avatar
      wrote this comment on

      It's a tag cloud, only listing categories is not supported (at least for now), sorry.

  126. avatar
    wrote this comment on

    Hi Nicolas,

    Thanks for this plugin, I am amazed that you are still providing support for this after almost 2 years!

    I've been trying to exclude one tag from my tag cloud, using the exclude tag option you included in the admin page. However it is not working. Can I edit something manually to get it to work? Which file should I be looking at?

    1. avatar
      wrote this comment on

      Hi Denise, I'm glad you like the plugin! To exclude tags you have to list them by ID, to see the ID you can go to the <tt>Posts->Post tags</tt> page and hover over the edit link. Or install this plugin: http://wordpress.org/extend/plugins/simply-show-ids/

  127. avatar
    wrote this comment on

    Hi Nicolas. Love the plugin, and thanks for your previous reply (above). I'm wondering -- is there a convenient way to get a clean listing of all tags/categories along with their ID numbers, so that you don't have to hover over each edit link one at a time?

    1. avatar
      wrote this comment on

      I think the easiest way is the simply show ids plugin. You can change the number of listed tags on the tags page by clicking on "Screen options".

      1. avatar
        wrote this comment on

        The "Simply Show IDs" plugin. Perfect! Thank you!

  128. avatar
    wrote this comment on

    Hello Nicolas

    Just downloaded this great plugin to use on my resumé/CV page. I am using it in conjunction with simple tags, which lets me add tags to pages.
    That way I am able to markup my skills so they count as tags on that page and create a tagcloud listing my skills.

    In order to do this I am using the shortcode [nktagcloud single=yes], which correctly displays the tags from the page - BUT the tag "CSS" is bigger than the other tags because in one of my blog posts I have also used this tag.

    So my problem is: using [nktagcloud single=yes] correctly displays only the tags from the current page/post - but if the tag from the page is used somewhere else on the site, it will count as well. What can I do to fix this?

    Thanks again for a great plugin.

    1. avatar
      wrote this comment on

      Hi Esben, you should be able to override the tag size with your own CSS. Something like .widget_nktagcloud a { font-size: 12px } (not tested)

      1. avatar
        wrote this comment on

        Thank for answering. Will give the css a go.
        :-)

      2. avatar
        wrote this comment on

        Hm, no, I don't think the plugin can do that.

    2. avatar
      wrote this comment on

      Just one more question: Is it possible to disable the links for the tags in the cloud on this particular page, without it affecting tag clouds on other pages?

  129. avatar
    wrote this comment on

    Thanks for the nice plugin! I have the options set to show the number of posts using each tag -- also option set to show each tag that has at least one post. However, the tags which have just one post aren't showing in the list of tags. Might you have a suggestion for me to get it working? Thanks.

    Edit: Please disregard my last comment. I figured out how to do it by setting the number to 0 instead of 1 -- as far as how many times the tag must be used before the tag is shown. Thanks.

  130. avatar
    wrote this comment on

    Brilliant plug-in, thankyou so much for this. I was beginning to tear my hair out until I found this, now I will be able to use your plug-in to show tags for a recipe archive! ;)

  131. avatar
    wrote this comment on

    nice one... but using too many tags in a tag cloud may not good for site, said by matts cutt

    1. avatar
      wrote this comment on

      That's why you can limit the number of tags with this cloud.

  132. avatar
    wrote this comment on

    For those (like me) using tags containing accents, here is how to correctly sort. In PAGE.PHP replace line 90 with the following line :

    uasort( $tags, create_function('$a, $b', 'return strnatcasecmp(replace_accents($a-&gt;name), replace_accents($b-&gt;name));') );

    Finally, add inside PAGE.PHP :

    function replace_accents($str) {
    $str = htmlentities($str, ENT_COMPAT, "UTF-8");
    $str = preg_replace('/&amp;([a-zA-Z])(uml|acute|grave|circ|tilde);/', '$1', $str);
    return html_entity_decode($str);
    }

    Voilà !

    1. avatar
      wrote this comment on

      Interesting. The code my plugin uses for sorting is the same the wp core uses. Did you check if the built-in tag cloud sorts your tags properly? If not I think I'll have to do some testing myself and maybe report a bug against wp core.
      I would have assumed that mysql can sort correctly if it has the correct locale definitions.

      1. avatar
        wrote this comment on

        The official WP widget also fails to sort accents. So, yes, it is a bug in the core functions, but I didn't bother to report it, because foreign language support never seems a priority in WP. Hehehe !

        Anyway, to summarize : By default, the tag 'époque' will get sorted AFTER the tag 'Zimbabwe', while 'epoque' (without accent) will get sorted BEFORE 'Zimbabwe'. The code I posted tries to solve this problem.

  133. avatar
    wrote this comment on

    Hi Nicolas, Thanks for the plug-in. Not sure if this is on topic but when I click a tag the resulting post will not display images. How do I have images displayed in the tag/post result?

    1. avatar
      wrote this comment on

      Hi Jay, that seems a theme problem, you should contact the theme developer.

  134. avatar
    wrote this comment on

    hi,

    is there any way to limit tag's length for "better tag cloud"?
    if I place tag cloud in index.php and have tag with too many characters for one line/string, plugin does not extend/wrap it to the second line, but pushes tag behind my sidebar.
    maybe someone knows how to limit tags length for default wordpress posts too?

    thank you.

    1. avatar
      wrote this comment on

      Did you set the "force tags on one line" option? That could cause such overflowing problems.

  135. avatar
    wrote this comment on

    Is there a possibility to have images in the place of text for tags?

    1. avatar
      wrote this comment on

      No that's not possible at the moment. What I could do is to add the tag as class to every link so that you can use CSS to add images.

  136. avatar
    wrote this comment on

    Hi Nicolas
    first of all, thanks for your time and support.
    We have added the multilingual support to our website (MLWP), but we are experiencing the following error when we switch from the native language to the other.HP Warning: Invalid argument supplied for foreach() in .\wp-content\plugins\nktagcloud\inc\page.php on line 312 PHP Warning: min() [function.min]: Array must contain atleast one element in .\wp-content\plugins\nktagcloud\inc\page.php on line 339 PHP Warning: max() [function.max]: Array must contain atleast one element in .\wp-content\plugins\nktagcloud\inc\page.php on line 340 PHP Warning: Invalid argument supplied for foreach() in .\wp-content\plugins\nktagcloud\inc\page.php on line 363 PHP Warning: Invalid argument supplied for foreach() in .\wp-content\plugins\nktagcloud\inc\page.php on line 371

    Any advice would be extremely appreciated.

    Thanks
    Fabio

    1. avatar
      wrote this comment on

      Hi Nicolas.
      I fixed the error, thanks anyway.

      Beste regards

      1. avatar
        wrote this comment on

        Can you tell me how you fixed it? I think I have it fixed here too, but I can't reproduce the problem.

  137. avatar
    wrote this comment on

    Would be really great to have option to exclude and include also the IDs of the categories and not only the ids of the tags + also option to enable/disable the tags the same way you can enagle or dissable the categories, i saw few suggestions for the same above, any channe to implement those? cheers Roman :))

    1. avatar
      wrote this comment on

      Hi Roman, I am currently working on a complete rewrite of this plugin and will keep this feature in mind! But it will take some time.

  138. avatar
    wrote this comment on
    Hello Mr Nicholas
    Thanks for this great plugin.

    I am having little problem here.

    Everything is perfect except the underlines.. how do i remove them? i tried css codes above but didnt work..
    Thanks
    1. avatar
      wrote this comment on
      you can use "!important" to fix or using $(div).css("property","none")

      Good luck !
  139. avatar
    wrote this comment on
    Hi - I'm having trouble with the spacing for the cloud - the tags are running all over each other. See http://www.lovelornpoets.com. How do I fix this? Thanks.
  140. avatar
    wrote this comment on
    Hi Nicolas, great plug-in!

    Is there a way to get one (or some) particular post(s) at the top of the page, once you clicked in the cloud. Like a "sticky" post, only just for the posts on the tagged page (post tagged '.....').

    e.g. I always want the 5th post at this page at the top of this page: http://www.carolineaalbers.nl/?tag=zatopek-dragon

    Best regards.

    Jeffrey
    1. avatar
      wrote this comment on
      There are several ways to do this. You can contact me through my contact form if you'd like to hire me.

      You can get free support on the wordpress forums and IRC channel.
  141. avatar
    wrote this comment on
    Hi, I would like to set up a tag cloud menu that looks like this: A,B,C,D,E,F,G,H,I, J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z so that when you click on a letter it brings up a list of all tags that begin with that letter. Is this possible within the native plugin functionality? If so, can you show me how to set up the parameters to only return the first letter as described above?

    Thank you in advance!
    1. avatar
      wrote this comment on
      No, the plugin doesn't support this. But I'm sure it could be coded.
  142. avatar
    wrote this comment on
    Hi Nicolas
    I have just installed your great plugin, but despite putting different font sizes they all appear under the same one which is a bit boring...Really want something like your tag cloud demo with different size. Is there something I should change in my theme? Thanks!
    1. avatar
      wrote this comment on
      Hi Laurent,

      the tags only have different sizes if you use them a different number of times. Same number means same size.
  143. avatar
    wrote this comment on
    Oh! I'm seing the light now lol Sorry for the hassle then and thank you for your fast answer Nicolas.
  144. avatar
    wrote this comment on
    Hello there, whenever I click a tag it will bring me to the correct page but wrong heading. It says "Entires tagged with African Fusion" instead of what it should be. Any way to fix this? The tag cloud is under "Browse by Keyword" in the main menu. Thanks!
    1. avatar
      wrote this comment on
      I think your theme is broken, can you try with the default theme?
  145. avatar
    wrote this comment on
    I am using WordPress 3.2 and everything seems to be working fine other than the mincount parameter when calling it from the function like this:

    <?php 
    if ( function_exists( 'nktagcloud_shortcode' ) ) {
    echo nktagcloud_shortcode( 'mincount=3' );
    }
    ?>



    Am I using this incorrectly? Or is this feature broken with the new version?

    Thanks!
    1. avatar
      wrote this comment on
      Do you mean that the cloud shows tags that are used less than three times? Can you confirm this by turning on the count display? I haven't tested the plugin on 3.2 yet, so it could be possible I guess.
      1. avatar
        wrote this comment on
        I do have the count on, all tags are showing and some are only used once.
  146. avatar
    wrote this comment on
    Hi Nicolas, thank you for a great and really usable plugin!
    A problem tough, on my wordpress.org site (theme: Press Portfolio) I have changed in it's php the number of thumbnails displayed on the front page to 24, as you see when you first enter the site or click the logo.

    But when I use the Better tag cloud to filter the page down it always return only 10 posts, is there anywhere I can get it to return all the results when clicking the tag?

    Thanks a lot!
    Rickard
  147. avatar
    wrote this comment on
    Regarding my last post, I solved it, it was on the regular settings page/reading... jeez :)
    1. avatar
      wrote this comment on
      Great :-)
  148. avatar
    wrote this comment on
    Hi there,

    Is it possible with this plugin, or in general, to make the tags given to private posts appear in the cloud also?

    Cheers,
    ~Naomi
    1. avatar
      wrote this comment on
      Hm, I'm not sure if wordpress can do that out of the box for you. It's certainly possible with a custom SQL query. It's also been a very long time since I worked on this plugin's code so I can't really tell.
  149. avatar
    wrote this comment on
    Dear Nicolas,

    I have installed the better tag cloud plugin. And It seems to work. I have a custom post type registered and I want to show via a widget or the placement code a limited amount of tags of only this Post type. the post type for instance is called dialog, I have also added the post_tags parameter to the registered post type and I have a hand full of tags. But nothing shows up.

    I tried the placement but nothing shows up. I am now using the widget on a position i made for it, and the title shows and an empty list. I added the costum post name to the taxonomy field in the widget. To no avail.

    What can i do ?

    Also added a line to inc/page making sure it uses the taxonomy tags, but this to does nothing.

    1. avatar
      wrote this comment on
      The taxonomy field is for taxonomies, not post types. If you CPT uses the normal post tags the cloud should just work iirc.
  150. avatar
    wrote this comment on
    Hi

    I have installed this and it does what I want which was to allow me to display more tags than the default. However I cannot make it look the way it's supposed to. The options I have are "flat" or "List" and in my sidebar it looks really neat rather than the default look and how yours looks. Mine is a modelling related blog so I can't post a link here, it is working, it just doesn't look like it's supposed to. Hope I've made sense!
    1. avatar
      wrote this comment on
      Hi Neil, the looks of the tag list are define through your theme's CSS styles. The plugin tried to have a sensible default styling but it really depends on the theme if this works.
  151. avatar
    wrote this comment on
    Hi.
    I downloaded your plugin today and I am really happy with it. I appreciate this work you have done for the benefit of others.
    I have on question: how can you justify the text in the could. The cloud here on your site looks great. How can I achieve this result also?
    Your help is greatly appreciated.
    Best regards,
    Bhakti Kamal Tyagi
    1. avatar
      wrote this comment on
      Hi, the cloud on this site doesn't use my wordpress plugin as I've switched away from wordpress. The style of the cloud can be changed through CSS. This depends on the theme you use, so I can't give general rules that will work everywhere.
  152. avatar
    wrote this comment on
    I have created a custom taxonomy and installed your plug in. Under appearance/widgets I see two versions - better tag cloud and better tag cloud mutli widget. The first one says it is deprecated and to use the "one on the left" which I assumed meant the multi-widget version. When i put it in my sidebar and configured it, it worked fine. I got my cloud pulling up my custom taxonomy (book authors). But I really want it in a page, not in the side bar. So I added the short code to a page instead. However, it is pulling up "tags" not the custom taxonomy. So I am wondering if this short code is taking its settings from somewhere else since they are not matching with how it worked in the side bar.

    I looked under Settings in my Dashboard and it too says it is deprecated and use the other widget. I went ahead and configured it anyway just in case. It looks like the page is pulling from these settings (b/c when I add or take away characters in the tag separator field it changes). But the setting are exactly the same as the ones in my widget. Yet the page is pulling up post tags not the custom taxonomy.

    Any ideas what is going on? Thanks!

    P.S. My site is currently on blogger with only my computer running the wp version (it hasn't all been moved over yet). So you will not be able to see my site on your end).
    1. avatar
      wrote this comment on
      If you're having the same type of problem as JayHjay - like I was - here's the fix I'm using:
      Install & activate the Better Tag Cloud
      In the Better Tag Cloud settings (some settings work, but not others…) –
      1)Remove CSS for list format that displays the tags inline? Yes (otherwise it wouldn't be in a list)
      2)Smallest font size 10 Largest font size 10 (to keep everything in the listing 10 pts)

      Update the page.php file (In the Plugins/Editor area – save a copy of the original first!!)
      1) replace post_tag with the name of your tag
      2) If you don’t want the tags to have a link - remove the href codes in the following:

      if ( $count > $mincount ) {
      $tags_shown_so_far++;
      if ( $inject_count_outside == 'Yes' ) {
      $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " . $tagsize . "$unit;'>$tag_name</a>" . nktagcloud_add_counter( $tag, $inject_count ) . $the_separator;
      }
      else {
      $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " . $tagsize . "$unit;'>$tag_name" . nktagcloud_add_counter( $tag, $inject_count ) ."</a>" . $the_separator;
      }
      }

      Then you can use the shortcode [nktagcloud] or [nktagcloud single=yes] etc. in a post or the Text widget in a sidebar.

      Of course, if the widget is updated, you'll need to redo the page.php changes.

      Hope this helps someone :-)
  153. avatar
    wrote this comment on
    Hello Nicolas, i have a problem with the Format "flat".
    "list" would work, but i like to show more Tags than it would be possible with "list".
    So i checked the "flat"-Format and it does the trick, with one thing what i couldn't fix. My Layout is full of Graphic and i like it that way. That also means that the sidebar has a real width of 296px, but really to use is only around of 270px. So if i use the flat-Format on both sides the Tags are invisible and even if i would change the link color it would look ugly.
    I searched now for a couple of hours a way trough your code, but i couldn't figure out how to get a div tag or something else inside of the Widget. Already an <ul> before the first Tag would do the trick if there is one also in the end. But i do not find the right place in the code, what is because i don't have that much knowledge about php/sql. Could i just add somewhere in the page.php a <ul></ul>-Tag to get the correct css format?

    Kind Regards
    1. avatar
      wrote this comment on
      Each widget gets a div with a unique ID iirc, can't you use that?
  154. avatar
    wrote this comment on
    trying to style my tag cloud using css but running into some issues. i would like to put a flat cloud in my sidebar with a styled div container.

    i can use the widget settings to get the cloud to style how i want, but now controls over the container. my theme doesn't give me individual classes or ids for each sidebar element. i can't attach a specific css rule to just the cloud.

    so i hit on the idea to load the shortcode in atext box that has a styled div in it. that works except the cloud loads as a list instead of flat.

    my question is: is there a way to attach an id or class to the widget or is there a way to load flat style to the shortcode?

    to see it in action http://illusions-art.com/lorem-ipsum-generators/
  155. avatar
    wrote this comment on
    Hi, just wondering if you're planning on updating this plugin at any time? It uses several deprecated functions and throws php warnings and notices.
    1. avatar
      wrote this comment on
      Probably not, but wordpress has a history of supporting deprecated functions forever (which is bad but kinda good for this plugin..).
  156. avatar
    wrote this comment on
    Oh man, only just see this. I programmed just the other day a very similar plugin. Could have maybe picked up this one and updated it.

    Hope it's ok I'm linking to mine here, for everyone who wants a plugin that's working with the current WordPress build.
    http://wordpress.org/extend/plugins/post-tags-and-archive/

    It's the same idea, but also includes shortcodes and options for the archive. Not as feature-rich yet - I'm up for adding often requested features.
    1. avatar
      wrote this comment on
      No problem. I don't really have the time to maintain my code anyway. Add to that the... not so nice subversion interface to the wp repository..