Created
August 10, 2012 06:04
-
-
Save rolandinsh/3311580 to your computer and use it in GitHub Desktop.
wp get_query_var term get term info on Archive page
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
<?php | |
/* | |
via http://wordpress.stackexchange.com/a/15287/7577 | |
codex: http://codex.wordpress.org/Function_Reference/get_query_var | |
*/ | |
$termslug = get_query_var( 'term' ); | |
$taxoname = get_query_var( 'taxonomy' ); | |
$thisterm = get_term_by( 'slug', $termslug, $taxoname ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment