Skip to content

Instantly share code, notes, and snippets.

@webonaut
Created March 18, 2015 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webonaut/1e660c179f9f2470cea0 to your computer and use it in GitHub Desktop.
Save webonaut/1e660c179f9f2470cea0 to your computer and use it in GitHub Desktop.
WooCommerce - Term-Infos laden
// 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