[wp-trac] Re: [WordPress Trac] #4552: number argument in
wp_tag_cloud is ignored
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 12 06:53:58 GMT 2007
#4552: number argument in wp_tag_cloud is ignored
-----------------------------------------------------+----------------------
Reporter: pgdx | Owner: pgdx
Type: defect | Status: reopened
Priority: normal | Milestone: 2.3 (trunk)
Component: Template | Version: 2.3
Severity: normal | Resolution:
Keywords: tag cloud number wp_tag_cloud has-patch |
-----------------------------------------------------+----------------------
Comment (by PStamatiou):
While this code does work for me, I was hoping for a method of limiting
tags in a tag cloud on a slightly different basis. By just limiting a tag
cloud to say 20 tags, for use in a sidebar for example, it just takes out
tags from the bottom regardless of their importance. I'm aware that they
can be ordered asc/desc and by name/count, but I would like to see a way
that retains the tag cloud appearance while limiting the number of tags.
That is, perhaps another parameter, or just the logic to limit tags by not
displaying ones that have very few posts associated with them and
rescaling the remaining tags' sizes to still have the trademark "tag
cloud" appearance
crude mockup to illustrate my jargon:
http://paulstamatiou.com/files/tag_cloud_smart.jpg
--
Ticket URL: <http://trac.wordpress.org/ticket/4552#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list