You must have seen cute tag clouds of various designs and sizes over Internet, while surfing your favorite websites. These are simple, attractive and effective way of highlighting important keywords (tags) related to categories or articles etc.

To add a webpage of tag cloud in wordpress (2.5 or greater), you need to follow these simple steps.

1- Copy paste the following code in a new file and name it as ‘tags.php’

<?php /*
Template Name: Tag Cloud
*/ ?>

<?php get_header(); ?>

<div id=”content” class=”narrowcolumn”>

<?php if ( function_exists(’wp_tag_cloud’) ) : ?>
<div style=”margin:25px;border:1px solid #111;padding:15px;”>
<ul style=”margin:0 0 0 8px;padding:0;”>
<?php wp_tag_cloud(’smallest=8&largest=24&number=0′); ?>
</ul>
</div>
<?php endif; ?>

<p style=”margin-left:33px;”>&nbsp; </p>
</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

2- Upload this file in  your theme directory ‘…/themes/active_theme/tags.php’

3- Add a new page ( “Pages < Add New” from word press admin panel) and select ‘Tag cloud’ in ‘Template’ as shown in the figure.

tagcloud-page1

That’s it. You are done.

Bookmark and Share