title: How can I get current taxonomy term id?
body: <p>I need to get current taxonomy term id. I am using this code.</p>
  
  <pre><code>$args = array(
          'post_type' =&gt; 'property',
          'post_status' =&gt; 'publish',
          'posts_per_page' =&gt; -1,
          'tax_query' =&gt; array(
                  array(
                    'taxonomy' =&gt; 'property_category',
                    'field' =&gt; 'id',
                    'terms' =&gt; array( 84, 99, 98, 97, 92, 91, 95, 100, 87, 96, 94, 93 ),
                    'include_children' =&gt; false
              )
          )
      );
  </code></pre>
  
  <p>As you see in the 'terms' section I made an array of all the terms but I need like if current page term id is 98, I want to set the Id 98 only in the array.</p>
  
  <p>Let me show you an example:
  this url <a href="https://ayanaproperties.com/property-for-sale/london/" rel="nofollow noreferrer">https://ayanaproperties.com/property-for-sale/london/</a> has term ID 98, the term is showing only 5 properties which is correct, but on the map section map is showing all the 220 properties. This is because in the above code I specified all the IDs in terms array.</p>
  
  <p>All the IDs in array are using the same code thats why I need if else condition.</p>
  
  <p>Please help me, How can i get this using if else condition?</p>
  
  <p>Thanks,</p>