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.
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 http://codex.wordpress.org/Template_Tags/wp_tag_cloud :
number
(integer) The number of actual tags to display in the cloud. (Use ‘0’ to display all tags.)
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?
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”