title: get_the_terms issue on foreach loop
body: <p>I want to show taxonomy name in post. I use foreach loop but it does not show any thing to me.</p>
  
  <p>here is my code.</p>
  
  <pre><code>&lt;?php
  
      global $post;
          $foo_home_url = site_url();
  
          $url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  
          if(strpos($url, 'foo_cat')){
              $foo_bc_cat = get_the_terms( $post-&gt;ID , FOO_POST_TAXONOMY );
      ?&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href="&lt;?php echo $foo_home_url; ?&gt;"&gt;Home&lt;/a&gt;&lt;/li&gt;
      &lt;?php
                      foreach($foo_bc_cat as $foo_tax_cat){
      ?&gt;
                      &lt;li&gt;&lt;a href="&lt;?php echo get_term_link($foo_tax_cat-&gt;slug, FOO_POST_TAXONOMY) ?&gt;"&gt;&lt;?php echo $foo_tax_cat-&gt;name ?&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;?php
                      }
      ?&gt;
              &lt;/ul&gt;
      &lt;?php
          }
      ?&gt;
  </code></pre>
  
  <p>Any idea.</p>