Hello, in content-product.php , I’ve seen this code echo all product categories for each product.
<?php if (etheme_get_option('product_page_cats')): ?>
<div class="products-page-cats">
<?php
$size = sizeof( get_the_terms( $post->ID, 'product_cat' ) );
echo $product->get_categories( ', ' ) . get_post_meta( $post->ID, '_year', true );
?>
</div>
<?php endif ?>
What if I’ve created let’s say two new product category call “Test” and “Test2”, but I don’t want to display both of those new category for product loop. What should I add inside the code?