title: Wordpress: If the_category != "category2"
body: <p>Quick Wordpress question. Is it possible to check against a specific category, so not to display it? I tried this, but my category was still being echoed (no errors).</p>
  
  <pre><code> &lt;?php if (the_category() != "NAMEOFMYCATEGORY") { the_category(' | '); } ?&gt;
  </code></pre>
  
  <p>Or would I need to work with a new function? </p>
  
  <p>To clarify: I want to HIDE 1 specific category so it doesn't show up.</p>