title: How to get the current taxonomy term ID (not the slug) in WordPress?
body: <p>I've created a taxonomy.php page in my WordPress theme folder. I would like to get the current term id for a function. 
  How can I get this?</p>
  
  <p><code>get_query_var('taxonomy')</code> only returns the term slug, I want the ID</p>