Im utilizing this code:
add_action( 'woocommerce_after_shop_loop' , 'woocommerce_brand_detail', 10 );
operate woocommerce_brand_detail() {
world $publish;
$manufacturers = wp_get_post_terms( $post->ID, 'product_brand', array("fields" => "all") );
foreach( $manufacturers as $model ) {
echo __( 'Hersteller / Markenbeschreibung', '') . ': ' . term_description( $brand->term_id, 'product_brand' );
}
}
To point out on the top of each product record the outline of every model, if one is chosen. it’s working, however the issue: it reveals double.. And that i donw know why.
it Reveals:
“Hersteller / Markenbeschreibung:
Description”
“Hersteller / Markenbeschreibung:
Description”
Nevertheless it must be simply:
“Hersteller / Markenbeschreibung:
Description”