Skip to content

Instantly share code, notes, and snippets.

@jbalzar
Created March 19, 2016 11:44
Show Gist options
  • Save jbalzar/c780f5a92f01398392b1 to your computer and use it in GitHub Desktop.
Save jbalzar/c780f5a92f01398392b1 to your computer and use it in GitHub Desktop.
Get Category Image in WooCommerce
<?php
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, 'thumbnail_id', true );
$cat_image = wp_get_attachment_url( $thumbnail_id );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment