Website Consultancy and Free Advice

WooCommerce Category / Shop Page Snippets & Hooks

Category Pages

Display Brand in the loop/category pages

This snippet was required for a client who wanted to add the product brand to the product loop on the category shop pages. The snippet adds the brand name above the price.

Instructions: Add to your Theme functions.php file

add_action( 'woocommerce_after_shop_loop_item_title', 'show_woocommerce_brands_loop', 8 );
function show_woocommerce_brands_loop() {
    global $post;
    echo get_brands( $post->ID );