'title', 'order' => 'ASC', 'hide_empty' => 0, 'parent' => 0 ); $product_categories = get_terms( 'product_cat', $args ); $count = count($product_categories); if ( $count > 0 ){ foreach ( $product_categories as $product_category ) { $product_cat_id = $product_category->term_id; $cat_link = get_category_link( $product_cat_id ); if ($product_category->category_parent == 0) { ?>
  • name ); ?>