How to show image of woocommerce product attribute?

admin

Administrator
Staff member
I installed <a href="https://wordpress.org/plugins/taxonomy-images/" rel="nofollow">Taxonomy Images</a> plugin and added images to one of my attributes, but I can't get them to be shown in template. When I var_dump the $result of:

Code:
$result = apply_filters( 'taxonomy-images-queried-term-image', '' );

I get an empty string.

I can get the value of attribute by:

Code:
$product-&gt;get_attribute( 'logo' );

But there's only string, not an object.

How can I get it to work?