'product_cat', 'fields' => 'id=>name', 'parent' => 0 ); $categories = get_terms( $args ); if( count( $categories ) > 0 ) : ?>
$cat_name ) { $cat_link = get_term_link( $cat_id ); echo ''. esc_html( $cat_name ) .''; } ?>
get_queried_object() ); $args = array( 'taxonomy' => 'product_cat', 'parent' => $category->term_id, 'fields' => 'id=>name' ); $categories = get_terms( $args ); if( count( $categories ) > 0 ) : ?>
$cat_name ) { $cat_link = get_term_link( $cat_id ); echo ''. esc_html( $cat_name ) .''; } ?>