разделы и подразделы (метка)
Как вывести разделы и подразделы товаров woocomerce?
Есть вот такой код:
<?php $args = array( 'taxonomy' => 'product_cat', 'hide_empty' => false, 'parent' => 0, ); $product_categories = get_terms( $args ); $count = count($product_categories); if ( $count > 0 ){ ...
4.2 года назад
1 ответ