Answers for "how to get all taxonomy with wpquery in wordpress"

PHP
0

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
Posted by: Guest on October-21-2020

Code answers related to "how to get all taxonomy with wpquery in wordpress"

Browse Popular Code Answers by Language