Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress get current taxonomy

$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
echo $term->name; // will show the name
echo $term->slug; // will show the slug
Source by www.wpbeginner.com #
 
PREVIOUS NEXT
Tagged: #wordpress #current #taxonomy
ADD COMMENT
Topic
Name
8+6 =