php wordpress echo the terms current taxonomy code example Example: get current term id <?php $current_term = get_queried_object()->term_id; ?>