I want to achieve a tag cloud like my website banner. after lots of research on net i decide to write my own code.

I have incorporated following code in my header.php

1
2
3
4
 $tag = wp_tag_cloud('smallest=30&largest=30&number=45&orderby=count&order=DESC&unit=px&format=array' );
foreach( $tag as $item) {
     echo "<" . $item . "> ";
}

Let me know is any other way to achieve it.

%d bloggers like this: