title: how to comma separate the taxonomy terms so it could be included dynamically in the tax query
body: <p>I have managed to return the taxonomies that have been selected for a post however, these are returned as one appended list eg <code>covid1covid2covid3</code>. I want to be able to separate these out <code>covid1, covid2, covid3</code> (not returning the last comma) so that I can use it in my tax query which would return related post dynamically based on these taxonomies. See my code below</p>
  <pre><code>  $currentID = get_the_ID();
    $post_terms = get_the_terms($currentID, 'vocabulary_1');
  
    foreach ($post_terms as $post_term) {
        $postTerm = $post_term-&gt;slug;  
    }
  
    $args1 = array(
      'post_type' =&gt; 'cme-education',
      'posts_per_page' =&gt; '1',
      'post_status' =&gt; 'publish',
      'orderby'=&gt;'rand',
  
      'tax_query' =&gt; array(
          array(
              'taxonomy' =&gt; 'vocabulary_1',
              'field'    =&gt; 'slug',
              'terms'    =&gt; array($postTerm),
              'operator' =&gt; 'IN',
              'order' =&gt; 'ASC'
          )
      )
  );
  </code></pre>