Depending on how your WordPress blog is set up, you may have an interest in displaying your WordPress tags for your readers to dig through in a nice looking cloud format. This is something that is very nice for readers to see, as long as you are responsible with your tagging and don’t use an overwhelming number of tags.
In order to display tags on your WordPress blog, you’ll just want to add this little code snippet whenever you want the tag cloud to display (usually in the sidebar or footer somewhere depending on your blogs layout).
Here is the code you’ll need:
<?php wp_tag_cloud(''); ?>
WordPress also allows you to customize your cloud to display the way you want it to. Most people like to emphasize the most used tags by making their font much larger. You can determine the size using the following code:
<?php wp_tag_cloud('smallest=8&largest=36&'); ?>
In this example, the tags will be displayed in alphabetical order with the least used tags being 8px and the most used tags will be 36px. You can of course adjust this to meet your needs.



Monday, April 7th, 2008 at 5:25 am
Thats great just what I was looking for. Do you know by any chance how to get the tag cloud to display on a full seperate page and not in the sidebar?
Monday, April 7th, 2008 at 5:53 am
@ Mac Tips - I would assume you could create a static page using your blog’s page.php file as a template and replace the page code with the tag cloud code. Then create a tag cloud page and select that template you created in the sidebar.
If that doesn’t make sense, I’ve got a post explaining how to do something similar going up sometime over the next week that should help.
Monday, April 7th, 2008 at 6:11 am
Thanks Kyle i will take a look at it.
Tuesday, April 8th, 2008 at 6:53 am
Then create a tag cloud page and select that template you created in the sidebar.
Sunday, May 18th, 2008 at 10:58 pm
Thanks for this post, it was very helpful. I have been trying others’ brilliant ideas on how to get a tag cloud created for hours, your solution was very easy. Wish I’d have found it first…….
Thursday, June 19th, 2008 at 5:51 pm
Dear Kyle
Still waiting for your tutorial for static tag cloud page
Thanks in advance
Thursday, June 19th, 2008 at 6:15 pm
@ Shahaan - The post I was referencing can be found here!
Tuesday, November 11th, 2008 at 9:33 am
You are a gem. This is the simplest tag code i ever seen. I was actually looking for a plugin for my tags. You can check out my site 247coolprofits.com and see how much you have helped me. Thanks.
Tuesday, February 10th, 2009 at 6:15 am
Thanks for the info.
Tuesday, February 17th, 2009 at 6:23 pm
Thanks for this post, this reall helps on displaying my tag on my blog’s frony page.
Friday, April 10th, 2009 at 3:59 am
How to create new page with tag cloud? Like http://wordpress.org/extend/plugins/tags/ ?
Friday, May 1st, 2009 at 12:33 am
thanks for codes!
Sunday, June 28th, 2009 at 5:01 am
Hi,
I am looking for a plugin that displays a tag cloud related to the post being viewed.
Any idea?
Trackbacks/Pingbacks
Leave A Comment
Become one of our
Featured Sites
Recent Trackbacks
Contributing Authors
Archives
Extras
WordPress Hacks Copyright © 2007-2009 | An Apricot Media Website
Template by StudioPress | Custom Design by Kyle Eslick and Blog Design Studio
RSS Feed Email RSS