Add the following PHP code to your child theme functions.php file.
[php]
get_id(), ‘product_cat’ );
if(!empty($termsp)){
foreach ($termsp as $term) {
$_categoryid = $term->term_id;
if( $term = get_term_by( ‘id’, $_categoryid, ‘product_cat’ ) ){
echo $term->name .’, ‘;
}
} } ?>
[/php]
0 Comments