Created
March 18, 2015 18:25
-
-
Save webonaut/1e660c179f9f2470cea0 to your computer and use it in GitHub Desktop.
WooCommerce - Term-Infos laden
This file contains 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
// Beschreibung: Gibt Term-Infos des aufgerufenen Produktes aus; | |
// Speicherort: in irgendeinem Template, z.B. single-product.php | |
// Quelle: http://pastebin.com/vHLkP79d | |
<?php print_r( 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