$number, 'orderby' => 'title', 'order' => 'ASC', 'hide_empty' => 0, 'parent' => 0 //'include' => $ids ); $product_categories = get_terms( 'product_cat', $args ); $count = count($product_categories); if ( $count > 0 ){ foreach ( $product_categories as $product_category ) { $cats_id = $product_category->term_id; $cat_link = get_category_link( $cats_id ); $thumbnail_id = get_woocommerce_term_meta( $product_category->term_id, 'thumbnail_id', true ); // Get Category Thumbnail $image = wp_get_attachment_url( $thumbnail_id ); if ($product_category->category_parent == 0) { ?>
  • '; } echo esc_html( $product_category->name ); ?>
  • esc_html( $catData ,'advance-ecommerce-store')));?> have_posts() ) : $page_query->the_post(); ?>