Created
June 3, 2015 20:02
-
-
Save omurphy27/d1dada8d61dd92f9c4c7 to your computer and use it in GitHub Desktop.
WooCommerce - Get Taxonomy Terms for a Product
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// global $product; // only define if necessary, on most templates it won't be | |
$terms = get_the_terms( $product->id, 'product_cat' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment