title: Wordpress - Display category on single page
body: <p>I create a custom post type with ACF.
  I have two different taxonomy for this custom type :</p>
  <ul>
  <li>Project type</li>
  <li>House type</li>
  </ul>
  <p>In House type, i have 4 different category :</p>
  <ul>
  <li>all types</li>
  <li>House</li>
  <li>Appartement</li>
  <li>Building</li>
  </ul>
  <p>Each post need 'all type' and one other (for example : all type, house)</p>
  <p>i would like to display the main category : House and not display : all types
  How can i hide 'all types' ?</p>
  <p>My code :</p>
  <pre><code>  &lt;div class=&quot;detailfiche&quot;&gt;
                                  &lt;?php 
                                      global $post;
                                      $terms = wp_get_post_terms($post-&gt;ID, 'housetype');
                                      if ($terms) {
                                          $output = array();
                                          foreach ($terms as $term) {
                                              $output[] = '&lt;span&gt;&lt;a href=&quot;' .get_term_link( $term-&gt;slug, 'housetype') .'&quot;&gt;' .$term-&gt;name .'&lt;/a&gt;&lt;/span&gt;';
                                          }
                                          echo join( ' ', $output );
                                      };
                                      ?&gt;
                              &lt;/div&gt;
  </code></pre>