Created
April 4, 2015 10:05
-
-
Save webonaut/af6c6ed26a9df0ea314f to your computer and use it in GitHub Desktop.
WooCommerce - aktiven Term-Namen anzeigen
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: 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