How do I get current taxonomy term id on wordpress

Posted: December 22, 2014 in WordPress

$queried_object = get_queried_object();
$term_id = $queried_object->term_id;

Advertisements

Comments are closed.