Home » Labs » WordPress Tag Cloud without a Plugin  

WordPress Tag Cloud without a Plugin


Filed under Labs

Tags are one of the great features of WordPress which shows different topics based on tags assigned to it. We can tag each post with relevant words or names which will help readers to find similar postings in site. Tag clouds will increase the search queries and you will get more page views. Here is a WordPress code to show Tag clouds without using a plugin.

<?php wp_tag_cloud(array(
  'smallest' => 8,       // minimum size of tag
  'largest' => 14,       // maximum size of tag
  'unit' => 'px',        // unit for sizing
  'number' => 25, 	 // total display tag numbers	
  'orderby' => 'name',   // alphabetical
  'order' => 'ASC',      // starting at A
  'exclude' => 4         // ID of tag to exclude from list
)); 
 
?>

Posts you may like: