Home | Store | Contact | Videos | Privacy Policy

How to display Tag Clouds without using any WordPress Plugins

4 Comments » | This post was viewed 9674 times.

If you are a blogger then you might familiar with the tag clouds, its a visual clouds of user generated (automatic / manual ) links of tags with different font sizes. Tag clouds are good to display useful information on the WebPages and blogs. It also helps in decreasing the bounce rates ( ratio of Total no of visits viewing one page and Total Entities to the Page ). Before going further we are going to present a simple code to display tag clouds anywhere in your WordPress template, without any use of WordPress plugins.

tag-clouds

<h2>Hot Tags </h2>
<?php if ( function_exists('wp_tag_cloud') ) : ?>
<?php wp_tag_cloud('smallest=8&largest=22&order=RAND&exclude=1,2'); ?>
<?php endif; ?>

Description of few simple parameters:

  • smallest=8 to decide the minimum font size of the tags
  • largest=22 to decide the maximum font size of the tags
  • order=RAND to Randomize the display of the tags
  • exclude=Tag ID’s to exclude the particular tags

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

4 Responses to “How to display Tag Clouds without using any WordPress Plugins”

  1. Nice article. Helped me lot.

  2. Thanks for excellent blog.

  3. That Really a great idea!

Leave a Reply