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 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;”> </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.
That’s it. You are done.
2 Responses
Elcoj
July 14th, 2009 at 2:00 pm
1Interesting, I`ll quote it on my site later.
Elcoj
tramodol online
September 2nd, 2009 at 9:42 am
2I published your news in twiter
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Meta
Time never returns