$category, ); $next = get_terms('product_cat', $args); if ($next) { $r .= ''; foreach ($next as $cat) { $r .= 'slug, $cat->taxonomy) . '" title="' . sprintf(__("View all products in %s"), $cat->name) . '" ' . '>' . $cat->name . ' (' . $cat->count . ')' . ''; $r .= $cat->term_id !== 0 ? hierarchical_term_tree($cat->term_id) : null; } $r .= ''; $r .= ''; } return $r; } ?>