PDA

View Full Version : Customize the display of the tag cloud widget


BPartch
08-07-2008, 05:30 AM
Is there anyway to make the tag cloud widget display as an unordered list vs the way it does by default? If I am overlooking the obvious please go easy on me. :p

davemcnally
08-07-2008, 10:56 AM
I've never liked the look of those widgets, they look too messy I think. Is there not a template tag that can be used to pull in the most popular tags? That way you could easily throw it into a list...

BPartch
08-07-2008, 03:59 PM
Yes I normally just hard code everything but the client wants widgets so they can edit stuff (can't seem to talk them out of it)

aaronjj
08-07-2008, 05:05 PM
Yes I normally just hard code everything but the client wants widgets so they can edit stuff (can't seem to talk them out of it)

you can create your own widget and use wp_generate_tag_cloud. I think it will accept a 'list' argument that will spit out an unordered list of tags. I don't think there is any easy way to change the behavoir of the default tag widget.

BPartch
08-07-2008, 05:34 PM
you can create your own widget and use wp_generate_tag_cloud. I think it will accept a 'list' argument that will spit out an unordered list of tags. I don't think there is any easy way to change the behavoir of the default tag widget.
This is what I was afraid of. Thanks :)

aaronjj
08-08-2008, 12:57 AM
This is what I was afraid of. Thanks :)

On second thought, just copy the code for the tag cloud widget, name it 'tag list', give it unique function and option names and where it calls wp_tag_cloud(); change it to wp_tag_cloud('format=list'); Wrap it in a plugin or throw it in your theme's functions.php file.

BPartch
08-09-2008, 06:25 AM
I feel pretty stupid, as it turns out I did in fact miss the obvious.

There is another tag cloud widget named ST: Tag Cloud that is created by the simple tags plug in, they can be customized into a list.

Thanks to all for the help. :)