title: How exclude one term from get_terms
body: <p>I am showing a list of terms from a taxonomy and need to exclude a term from the list how do I do this? I made the code below but did not delete it.</p>
  
  <pre><code>$terms = get_terms( 'taxonomyespecialidades', array( 
                          'orderby' =&gt; 'name',
                          'order'   =&gt; 'ASC',
                          'exclude'  =&gt; array(),
  ) );
  $exclude = array("Acupuntura");
  $new_the_category = '';
  foreach ( $terms as $term ) {
  if (!in_array($term-&gt;term_name, $exclude)) {
  $new_the_category .= '&lt;div class="post hvr-grow"&gt;&lt;li&gt;&lt;strong&gt;&lt;a id="lista" href="'.esc_url( get_term_link( $term ) ) .'"&gt;'.$term-&gt;name.'&lt;/a&gt;'. ' ('. $term-&gt;count . ')&lt;/strong&gt;&lt;/li&gt;&lt;/div&gt;';
  }
  }
  echo substr($new_the_category, 0);
  </code></pre>