title: How to output taxonomy terms used for WP post?
body: <p>I'm currently working on a project in wordpress where I have a custom taxonomy created for a list of services applied to that individual post. </p>
  
  <pre><code>&lt;main id="main" role="main" &lt;?php body_class(); ?&gt;&gt;
  &lt;?php
       $services_args = array(
          'post_type' =&gt; 'sc_project',
       );
       $services_query = new WP_Query( $services_args );
       if ( $services_query-&gt;have_posts() ):
  
       $terms = get_terms( array(
           'taxonomy' =&gt; 'sc_project_service',
           'hide_empty' =&gt; false,
       ) );
  ?&gt;  
  &lt;section&gt;
    &lt;div&gt;
         &lt;a href="#"&gt;Back to Projects&lt;/a&gt;
         &lt;h2&gt;&lt;strong&gt;&lt;?php the_title(); ?&gt;&lt;/strong&gt;&lt;/h2&gt;
         &lt;div&gt;
             &lt;div&gt;Services&lt;/div&gt;
             &lt;?php foreach ( $terms as $term ) :  ?&gt;
                &lt;span&gt;&lt;?php echo $term-&gt;name; ?&gt;&lt;/span&gt;
             &lt;?php endforeach; ?&gt; 
        &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;
  &lt;?php endif; ?&gt;
  &lt;/main&gt;
  </code></pre>
  
  <p>So my question is, with this block of code I have the ability to output every single taxonomy term used but how do I go about limiting the output to only the ones for that specific post?</p>
  
  <p>Any input would be appreciated.</p>
  
  <p>Thank you!</p>