title: Trying to get taxonomy link from another custom post
body: <p>I'm listing all movies on custom post type 'listing' and all directors listing on custom post type 'directors' when i trying to get taxonomy link for movie directors its display nothing. </p>
  
  <pre><code>&lt;?php
  
  $taxonomy ='mydirectors';
  $term_lists = get_the_terms($post-&gt;ID, $taxonomy);
  foreach ($term_lists as $termlist):
      $name_term= $termlist-&gt;slug;
      $argsdirectors = array(
          'post_type' =&gt; 'directors',
          'name' =&gt; $name_term
          );
      $loop = new WP_Query($argsdirectors);
      if ( $loop-&gt;have_posts() ) :
          while($loop-&gt;have_posts()): $loop-&gt;the_post();
      ?&gt;  &lt;a href="&lt;?php the_permalink() ?&gt;"&gt;   &lt;?php 
      $terms = get_the_terms( $post-&gt;ID , 'mydirectors' );
      if ( $terms != null ){
          print ' &lt;div class="detail"&gt;&lt;span class="name"&gt;&lt;font size="+1"&gt;Director&lt;/font&gt;&lt;/span&gt;&lt;br /&gt;';
          foreach( $terms as $term ) {
              print $term-&gt;name."&lt;br&gt;" ;
              unset($term);
              if (!empty($terms)) {
                  echo "";
              }
          }
          print "&lt;/div&gt;&lt;br&gt;";
      } 
      ?&gt;&lt;/a&gt;
      &lt;?php
      endwhile;
      endif;
      endforeach;
      wp_reset_query();
      ?&gt;
  </code></pre>
  
  <p>What is the problem? </p>