I am trying to create lists of tags based on one category, instead of listing all of them together. I have the code to list all of my tags:
<?php
$tags = get_tags();
$tags_count = count($tags);
$percolumn = ceil($tags_count / 3);
for ($i = 0;$i < $tags_count;$i++):
if ($i < $percolumn):
$tag_left .= '
<li><a href="'. get_tag_link($tags[$i]->term_id) . '"rel="tag">' . $tags[$i]->name .'</a></li>
' . "\n";
elseif ($i >= $percolumn && $i < $percolumn*2):
$tag_mid .= '
<li><a href="'. get_tag_link($tags[$i]->term_id) . '"rel="tag">' . $tags[$i]->name .'</a></li>
' . "\n";
elseif ($i >= $percolumn*2):
$tag_right .= '
<li><a href="'. get_tag_link($tags[$i]->term_id) . '"rel="tag">' . $tags[$i]->name .'</a></li>
' . "\n";
endif;
endfor;
?>
What do I need to add to only get tags that are from say cat=1