if(is_tax())
{
$currentTermType = get_query_var( \'taxonomy\' );
$cat_icon = get_field(\'logo\', $queried_object);
$termId= get_queried_object()->term_id;
if(is_tax($currentTermType) && $termId==$term->term_id)
$carrentActiveClass=\'class="active-cat"\';
$i=0;
}
$icon = get_field(\'logo\', $term->taxonomy . \'_\' . $term->term_id);
$va_category_HTML .= \'<li class="logolar" \'.$carrentActiveClass.\'>\' .\'<a class="rownum">\' .$i++. \'</a>\'. \'</a>\';
$va_category_HTML .= sprintf(\'<img src="%s" />\', $icon) . \'</a>\';
$va_category_HTML .=\'<a href="\' . esc_url( $term_link ) . \'">\' . $term->name . \'</a>\';
if (empty( $instance[\'wcw_hide_count\'] )) {
$va_category_HTML .=\'<span class="post-count">\'.$term->count.\'</span>\';
}
$va_category_HTML .=\'</li>\';
}
这是我的密码