Uzyskaj bieżącą stronę podatkową

get_queried_object()->term_id;

Andrew Lautenbach