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