Skip to content

Instantly share code, notes, and snippets.

Eric (shamai) Greenfield saltnpixels

Block or report user

Report or block saltnpixels

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View get_taxonomy_name.php
global $wp_query;
$term = $wp_query->get_queried_object();
$title = $term->taxonomy;
//var_dump $term to see all the stuff you can get
//if its a tag we want Tag not post_tag.... its the slug...
if($title == 'post_tag'){
echo 'Tag';
echo ucwords( $title);
You can’t perform that action at this time.