A freelance client hired me to display each product brand in the shop/loop page. The WooCommerce Brands plugin, in fact, only adds these in the Single Product Page.

Display WooCommerce Brands @ Loop/Shop Pages

PHP Snippet: Display “Brands” @ WooCommerce Loop – WooCommerce Brands Plugin


/**
 * @snippet       Display "Brands" @ Shop/Loop - WooCommerce
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=21596
 * @author        Rodolfo Melogli
 * @compatible    WC 2.6.14, WP 4.7.2, PHP 5.5.9
 */

add_action( 'woocommerce_after_shop_loop_item_title', 'bbloomer_show_woocommerce_brands_loop', 8 );

function bbloomer_show_woocommerce_brands_loop() {
	global $post;
	echo get_brands( $post->ID );
}

Share:

Leave a Reply