1

$args = array( ‘number’ => $number, ‘orderby’ => $orderby, ‘order’ => $order, ‘hide_empty’ => $hide_empty, ‘include’ => $ids, ‘child_of’ => 33 ); $product_categories = get_terms( ‘product_cat’, $args ); foreach( $product_categories as $cat ) { $thumbnail_id = get_woocommerce_term_meta( $cat->term_id, ‘thumbnail_id’, true ); $item = ‘

‘; $item .= ”; $item .= ‘‘; $item .= ‘

‘ . $cat->name . ‘

‘; $item .= ‘

‘; echo $item; }

Яндекс.Метрика