Show Tag Cloud

The tag cloud function could be used all around the theme: sidebar, footer and everywhere else. It just returns simple links, which can be styled in any way. Wrap the function in div’s or paragraphs to have the desired styling.

Code Snippet:

<?php wp_tag_cloud(array(
  'smallest' => 10,      // size of least used tag
  'largest' => 18,       // size of most used tag
  'unit' => 'px',        // unit for sizing
  'orderby' => 'name',   // alphabetical
  'order' => 'ASC',      // starting at A
  'exclude' => 6         // ID of tag to exclude from list
)); ?>

Posted in Pure hacks