Product Icon

WooCommerce Brands

Create, assign and list brands for products, and allow customers to view by brand.

Display Brand Name as link in the product page

Improve this code

/*
* Increase `1` on line 7 to move position of brand name
*/
add_action( ‘woocommerce_single_product_summary’, ‘wc_brands_add_brand_name’, 1 );
function wc_brands_add_brand_name() {
global $product;
$brands = implode(‘, ‘, wp_get_post_terms($product->get_id(), ‘product_brand’, [‘fields’ => ‘names’]));
echo “Brand: ” . $brands . “”;
}

Author

Sevun

Current Status

Open

Last updated: August 24, 2023

1 comment

Log in to comment on this feature request.

  1. webdesign87c3c7f634 says:

    How can that be shown below the price on the product page?