title: wordpress term exists condition not working
body: <p>I'm running this inside a loop in WordPress:</p>
  
  <pre><code>&lt;?php
  
      if ( term_exists('term'=&gt; 'pdf'))
      { 
         echo 'PDF' ;
      }
      else if ( term_exists('term'=&gt; 'ppt'))
      { 
         echo 'PPT' ;
      }
      else ( term_exists('term'=&gt; 'mov'))
      {
          echo 'MOV' ;
      }
  
  ?&gt;
  </code></pre>
  
  <p>I've created a taxonomy called <code>file-formats</code> and these terms above ( <code>pdf</code>, <code>mov</code>, <code>ppt</code> ) are in my <code>file-formats</code> taxonomy.</p>
  
  <p>And I'm trying to <code>echo</code> specific stuff, depending in which term the post is in.</p>
  
  <p>But the PHP script above just seems to brake the site. Can anyone help?</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This still not working...</p>
  
  <pre><code>&lt;?php
  
      if (term_exists( 'term' =&gt; 'pdf' )) {
  
          echo 'PDF' ;
  
      }
      else if (term_exists( 'term' =&gt; 'ppt' )) {
  
          echo 'PPT' ;
  
      }
      else if (term_exists( 'term' =&gt; 'mov' )) {
  
          echo 'MOV' ;
  
      }
      else {
  
          echo '' ;
  
      }
  
  ?&gt;
  </code></pre>