Created
June 11, 2016 22:27
-
-
Save fitodac/5df644d21300e4c52c883b3700f01582 to your computer and use it in GitHub Desktop.
Get custom post type data in taxonomy view
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
$currentTaxonomy = get_query_var('taxonomy'); | |
if ($currentTaxonomy) { | |
$taxObject = get_taxonomy($currentTaxonomy); | |
var_dump($taxObject); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment