желтый

    $ocin_lite_shop_categories = get_theme_mod( 'ocin_lite_shop_categories', '' ); if ( $ocin_lite_shop_categories ) { foreach ( $ocin_lite_shop_categories as $slug ) { $term = get_term_by( 'slug', $slug, 'product_cat' ); // The $term is an object, so we don't need to specify the $taxonomy. $term_link = get_term_link( $slug, 'product_cat' ); // If there was an error, continue to the next term. if ( is_wp_error( $term_link ) ) { continue; } $current_cat = is_product_category( $slug ) ? 'current' : ''; // We successfully got a link. Print it out. echo '
  • '; } } ?>

Отображается единственный результат