object(stdClass)#17197 (3) { ["post_content"]=> string(0) "" ["post_title"]=> string(0) "" ["post_excerpt"]=> string(0) "" }
<?php
$parentid = get_queried_object_id();
$args = array(
'parent' => $parentid,
'hide_empty' => false
);
$terms = get_terms( 'product_cat', $args );
if ( $terms ) {
echo '<ul>';
foreach ( $terms as $term ) {
echo '<li class="catalog-list-block">';
//woocommerce_subcategory_thumbnail( $term );
echo '<a href="' . esc_url( get_term_link( $term ) ) . '" class="' . $term->slug . ' catalog-list-block__title">';
echo $term->name;
$cat = $wp_query->get_queried_object();
$thumbnail_id = get_woocommerce_term_meta( $cat->term_id, 'thumbnail_id', true );
echo '</a>';
echo '</li>';
}
echo '</ul>';
}
?>