Brand Directory

"; } foreach ($terms as $term) { $wpq = array ('taxonomy'=>'brands', 'term'=>$term->slug); $query = new WP_Query ($wpq); $article_count = $query->post_count; echo "
"; if ($article_count) { echo "slug."\">".$term->name.""; } else { echo $term->name; } echo "
"; echo "
"; echo $term->description; echo "

"; if ($article_count) { echo "slug."\">".$article_count; } else { echo "$article_count"; } echo " related article"; if ($article_count!= 1) echo "s"; else echo ""; if ($article_count>0) { echo " - click to view"; } else { echo ""; } echo "
";; echo "
"; } if (count($terms)) { echo ""; } ?>