Skip to content

Instantly share code, notes, and snippets.

@fitodac
Created June 11, 2016 22:27
Show Gist options
  • Save fitodac/5df644d21300e4c52c883b3700f01582 to your computer and use it in GitHub Desktop.
Save fitodac/5df644d21300e4c52c883b3700f01582 to your computer and use it in GitHub Desktop.
Get custom post type data in taxonomy view
$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