jcadima
2/24/2017 - 7:34 PM

Display Category Image, Products > Category

Display Category Image, Products > Category


https://docs.woocommerce.com/document/woocommerce-display-category-image-on-category-archive/

Select a new Image in Thumbnails and place the code below to where you want to 
show that image

<?php

global $wp_query;
$cat = $wp_query->get_queried_object();
$thumbnail_id = get_woocommerce_term_meta( $cat->term_id, 'thumbnail_id', true );
$image = wp_get_attachment_url( $thumbnail_id );
if ( $image ) {
  echo '<img src="' . $image . '" alt="' . $cat->name . '" />';
}