Here's a little coding problem for you. The code:
if ($categories) {
foreach ($categories as $tag) {
$tag_link = get_category_link($tag->term_id);
//new line
if (isset($instance['new-line'])) {
$html .= "<div>";
}
$html .= "<span class="tagsy-box" style="$box_style">";
$html .= "<a href="{$tag_link}" title="{$tag->name} Tag" class="{$tag->slug}"><span class="tagsy-name-$style $theme_name" style="$name_style">";
$html .= "{$tag->name}</span><span class="tagsy-count-$style $theme_count" style="$count_style">{$tag->count}</span></a></span>";
//new line
if (isset($instance['new-line'])) {
$html .= "</div>"; } }
}
else {
$html .= "No Categories Available";
}
}
}
The problem: I want to exclude certain categories from displaying. Apparently, the way to do this is to skip the foreach loop for those categories I want to exclude. Unfortunately, I have no idea how to do this. Help much appreciated.
$html .= "<span class="tagsy-box" style="$box_style">";will throw errors, as you are nesting unescaped double quotes.