• I have 2 tag clouds on my site; one is in the sidebar and is set to show the 25 most popular tags, however I want to have a tag cloud on my archives page that shows ALL the tags for all my entries…it seems that it’s only showing tags with at least 2 entries under that tag, is there any way to make it show ALL tags no matter what the # of entries is for that tag?

    I have the following code on my archives page:
    <?php wp_tag_cloud('smallest=7&largest=10&orderby=name&'); ?>

Viewing 8 replies - 1 through 8 (of 8 total)
  • What happens if you use the number=9999 parameter with the Template Tag, wp_tag_cloud()?

    Of course if you have more than 9,999 tags you’d want to use a larger number ??

    Please note, if you don’t use the number parameter it will only show 45 tags.

    Thread Starter palmettostar

    (@palmettostar)

    Oh! That worked ?? Thanks, I didn’t even think to try that

    uhm… why don’t use the “number” argument with a value of “0” (zero)?
    As stated in https://codex.www.ads-software.com/Template_Tags/wp_tag_cloud :

    number
    (integer) The number of actual tags to display in the cloud. (Use ‘0’ to display all tags.)

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Yes, zero will work. However, be warned that if you’re talking about enough tags, then eventually PHP will run out of memory while trying to generate the tag cloud. It might take a while, but seems to me that it would take less than 100,000 tags to do it on most standard setups.

    100 000 tags would be amazing, if that ever became a scenario, what would be our solution besides increasing our php memory on the server side?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    There wouldn’t be any solution other than increasing the memory. Still, that’s not difficult to do, it’s a minor PHP.INI change. Just saying that 8 megabytes, the default, won’t hold an extreme amount of tags in memory at once. So for a large site, you might need to increase the memory size to 16 megs or so.

    Setting it to 0 does NOT work for me. When I do that, it displays nothing. I can’t do 999 either. I did some testing and it looks like I can only do up to number=225 if I want it to actually display anything. However, my wp_tags table has 417 rows (which is the number I got when I did the conversion from UTW, too). Why can’t I display all my tags? I’m thinking that since I’m working on orders of magnitude less than 100,000 I should be able to do it without increasing the memory.

    can anyone tel me the plug-in that is compatible for version 2.3 for ” the most tag searched”

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display ALL tags w/ tag cloud?’ is closed to new replies.