I am using the Perfect WooCommerce Brands plugin for brand management of my company's online store.
I would like to get the name of the brand and convert it into the corresponding link.
<?php $brands = wp_get_post_terms( get_the_ID(), 'pwb-brand' );
foreach( $brands as $brand ) {
$post_excerpt = $brand->name . ' '; ?>
<div class="tag-brands" style="color: #fe7418 !important;font-weight: 900;font-size: 15px;">
<?php echo ''.$brands; ?>
</div>
<?php } ?>
The result I get is "Array" which I understand is the complete block of brands, what I want to do is take the corresponding mark to that product and show it as a link.