Skip to content

Instantly share code, notes, and snippets.

@pixelstorm
Created May 23, 2018 06:38
Show Gist options
  • Save pixelstorm/0957cbd038d36da1b16a47ac062efa75 to your computer and use it in GitHub Desktop.
Save pixelstorm/0957cbd038d36da1b16a47ac062efa75 to your computer and use it in GitHub Desktop.
output the currently viewed page term name
<?php $pxs_term_id = get_queried_object()->term_id; ?>
<?php $term = get_term($pxs_term_id); ?>
<h3><?php echo $term->name;?></h3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment