Home » WooCommerce Brands: Display Brands @ Shop & Category Pages

WooCommerce Brands: Display Brands @ Shop & Category Pages

by adminkys

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

So, this is how it’s done. Enjoy!

Display WooCommerce Brands @ Loop/Shop Pages

PHP Snippet: Display “Brands” @ WooCommerce Shop & Product Archives – WooCommerce Brands Plugin

/**
 * @snippet       Display "Brands" @ Shop/Loop - WooCommerce
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 5
 * @donate $9     https://www.tutoraspire.com
 */

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

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

You may also like