title: Get first two category only and excluding one in Wordpress
body: <p>My code:</p>
  
  <pre><code>  &lt;?php 
          $category = get_the_category(); 
          echo $category[0]-&gt;cat_name;
    ?&gt;
    &lt;?php 
          $category = get_the_category(); 
          echo $category[1]-&gt;cat_name;
    ?&gt;
  </code></pre>
  
  <p>I want get two category as links but exclude "uncategorized" category.</p>