title: How can I get terms (post_tag) of custom taxonomy item? Wordpress
body: <p>I created custom post type 'photo' and custom taxonomy 'catphoto'. </p>
  
  <p>The type 'photo' supports 'catphoto' and 'post_tag' as taxonomies.</p>
  
  <p>Now I should make one filter for a client. </p>
  
  <p>I need to show on <strong>taxonomy-catphoto.php</strong> page all <code>post_tags</code>, which belong to the current 'catphoto' item.</p>
  
  <p>For example, I have a post of custom post type 'photo'. The name of this post is 'Plane'. This post belongs to '<em>1961-1981</em>' catphoto item. Also it has post tags like '<em>space</em>', '<em>planes</em>', '<em>stars</em>', '<em>war</em>'. </p>
  
  <p>Also, for example, I have a post of 'photo' which name is 'Soldier'. It belongs to '<em>1941-1961</em>' catphoto item and has '<em>WW2</em>', '<em>USA</em>', '<em>USSR</em>' like post tags.</p>
  
  <p>And now when I select 1941-1961 catphoto item I should get a list with:
  <em>WW2</em>
  <em>USA</em>
  <em>USSR</em></p>
  
  <p>I try like this:</p>
  
  <pre><code>if (substr($_SERVER['REQUEST_URI'],1,8) == 'catphoto'){
      $cur_terms = get_terms('post_tag');
      if ($cur_terms) {
          foreach( $cur_terms as $cur_term ){
              echo $cur_term-&gt;name.'&lt;br/&gt;';
          }
      }
  }
  </code></pre>
  
  <p>Now I get all post tags of all catphoto items. How can I fix to restrict for definite catphoto item. For example, '<em>1941-1961</em>' ?</p>