title: Comma separate custom taxonomies (no links)
body: <p>Here's just a simple little question I can't seem to figure out. I have one custom taxonomy which has multiple options. But I want to show the taxonomies without links. So I use this code:</p>
  
  <pre><code>&lt;li&gt;
      &lt;?php
          $terms_as_text = get_the_term_list($post-&gt;ID, 'opties');
  
          if (!empty($terms_as_text)) echo '', strip_tags($terms_as_text) , '';
      ?&gt;
  &lt;/li&gt; 
  </code></pre>
  
  <p>This display's only the selected custom taxonomies of <code>opties</code>. Because this taxonomy has multiple options I would like to comma separate them. But it won't let me.</p>
  
  <p>Normally you would use:</p>
  
  <p><code>&lt;?php
      echo get_the_term_list( $post-&gt;ID, 'opties', '&lt;ul&gt;&lt;li&gt;', '&lt;/li&gt;&lt;li&gt;', '&lt;/li&gt;&lt;/ul&gt;' ); ?&gt;</code></p>
  
  <ul>
  <li>The first part = before.</li>
  <li>The middle part = separate.</li>
  <li>The last part = after.</li>
  </ul>
  
  <p>But this makes links of the custom taxonomy terms, and I don't want that to happen.</p>
  
  <p>But because of the <code>strip_tags($terms_as_text)</code> I can't comma separate them. </p>
  
  <p>How can I get them to separate with a comma?</p>