I wanted the post tags below the post. So I began searching for the functions available in Wordpress to read the tags. Besides this I wanted the tag cloud differently. I wanted to change, if possible, the font size of the largest tags and the number of tags displayed.
The first item was to read the tags. I found the function ‘the_tags()’. You can add different options for the function : the_tags(‘before’, ’separator’, ‘after’). I changed my theme to add the option with all the posts.
The second item was the tag cloud. There is a function in Wordpress (2.3.3 and above?) called ‘wp_tag_cloud’. You can add some nice options to customize the cloud. I use the following options :
wp_tag_cloud(‘number=20&order=desc&largest=18′).
- Number : number of items placed in the tag cloud
- Order : in which order to display the tags, ascending or descending
- Largest : the largest font size.
The function is placed in the file widgets.php. I’ll try to find a way to adjust this option in a nice way…
For other options read the wordpress documentation of wp_tag_cloud and the_tags.




