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.

Kyle Eslick is WordPress enthusiast who took his passion for WordPress to the next level in 2007 by launching WPHacks.com as a place to share hacks, tutorials, etc. Follow Kyle on Twitter @KyleEslick!

  1. Mac Tips says:

    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?

    • Renz says:

      I thought tag cloud is just another plugin that you’ll just install and display in widget form. Is there an easier way than adding code snippets in the page?

  2. Kyle Eslick says:

    @ 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. 😀

  3. Mac Tips says:

    Thanks Kyle i will take a look at it.

  4. prefabrike says:

    Then create a tag cloud page and select that template you created in the sidebar.

  5. David says:

    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…….

  6. shahaan says:

    Dear Kyle

    @ 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.

    Still waiting for your tutorial for static tag cloud page

    Thanks in advance

  7. Kyle Eslick says:

    @ Shahaan – The post I was referencing can be found here!

  8. Jerry Asemota says:

    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.

  9. Sangesh says:

    Thanks for the info.

  10. jlois says:

    Thanks for this post, this reall helps on displaying my tag on my blog’s frony page.

  11. T-Law says:

    How to create new page with tag cloud? Like http://wordpress.org/extend/plugins/tags/ ?

  12. suiying says:

    thanks for codes!

  13. James says:

    Hi,

    I am looking for a plugin that displays a tag cloud related to the post being viewed.

    Any idea?

  14. News says:

    Thanks fot the codes, just added tag cloud to my WP blog. Nice!

  15. kelowna says:

    Many Thanks, You are a gem. This is the simplest tag code i ever seen.

  16. Korbein says:

    Ditto on the many thanks!!!!!!! Is it possible to use this code to put the Tag Cloud in the footer?

  17. Daryl Lau says:

    Is there a way to limit the total number of tags shown?

  18. Jeevan | ARM MX says:

    Thanks for the tip. How to insert the tag cloud on to a page?

  19. Kevin Oh! says:

    Thanks, Kyle!

    Short and sweet and works perfectly. Just added it to my sidebar.

  20. saurabh says:

    i simply copied the code in the footer but nothing happened!
    help

  21. geia says:

    Hi there, I love this site by the way. I am a beginning blogger and I am trying to get my 1st WP blog site up and running. I like your twitter box in your sidebar. I think the blue Tweey Bird is waay cooool! How can I find one like that to put in mysidebar?

  22. Tech News says:

    Thanks a ton. I was really looking for this. I spent hours to find the right method of putting tags cloud into a specific part of blog template.

    Thanks again.

  23. Ashish says:

    I tried and you tag cloud worked like a charm on my site. I changed few parameters though. Thanks.

  24. jasir javaz says:

    How to display my wordpress site’s tags as cloud in another html site? is there any code? I want to paste it in ma facebook fan page as tag cloud.

  25. Praveen says:

    I have added this tags in footer contents…..My wordpress blog now looks !!!

  26. Layanan Iklan Online says:

    How to added Category cloud on footer?

  27. tony says:

    Sorry I cant get this to work! 🙁 I want my tag cloud to be the rotating bunch of words (that is what were talking about here right?) I cant figure out where to copy and paste the code — I already have the standard tag area on my side footer but tried pasting the code both as a tag itself and in the area it says tag title…but it didnt do anything….what am I doing wrong?

    Thanks

  28. tom says:

    Thanks a million, now I have tag clouds on my blog!

  29. Is there a way to limit the total number of tags shown…?

  30. Santhosh says:

    Was looking for the exact thing, to move the tag to central area as it looks cluttered if it is in the side widget. Thanks

  31. John says:

    thanks bro!

    this is all i wanted. forget the lousy plugins!

  32. Piralabs Blog says:

    How to colorize the tag with this code?

  33. erbil says:

    how can i choose how many keywords will be showed ?

  34. Tricky Planet says:

    Exactly this is what i was looking for.

Trackbacks/Pingbacks »

  1. Ultime dal fronte WordPress 15-2008 says:
  2. HT_TEEPEE » Blog Archive » Wordpress tag cloud says: