Skip to content

Instantly share code, notes, and snippets.

@webonaut
Created April 4, 2015 10:05
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/af6c6ed26a9df0ea314f to your computer and use it in GitHub Desktop.
Save webonaut/af6c6ed26a9df0ea314f to your computer and use it in GitHub Desktop.
WooCommerce - aktiven Term-Namen anzeigen
// Beschreibung: Lädt aktiven Term-Namen;
// Speicherort: in irgendeinem Archiv-Template, z.B. in der archive-product.php;
// Quelle: http://codex.wordpress.org
<?php
$term = $wp_query->queried_object;
echo '<h1>Produkte zur Kategorie '.$term->name.'</h1>'; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment