Request: Display Woocommerce Product Category Thumbnails

Hi team,

Is it okay to do request posts here, or should they go elsewhere?

Anyways, am I correct in that we cannot pull the thumbnail when looping woocommerce categories?

Until then a workaround is of course adding a custom image field.

Cheers :slight_smile:

Hi Mikkel,
It should be possible to get that thumbnail if you can find the meta key WC assigns it in the database. It looks like that meta key might be thumbnail_id based on a quick google search.

So if you’re displaying Woo categories in a taxonomy_term loop you’d access the image within your loop like so:

<Loop type=attachment id="{Field thumbnail_id}">
  <img src="{Field url size=medium}" alt="{Field alt}" />
</Loop>

You can find the full list of available fields for the attachment Loop here: Attachment | Tangible Loops & Logic