title: Display Only One Category
body: <p>On my WordPress theme, it displays all of the categories a post is in on the homepage for the post block, I only want to display one category even if a post is under multiple categories.</p>
  
  <p>i.e. Category One, Category Two, Category Three</p>
  
  <p>I want it to be Category One...</p>
  
  <p>This is the code that is in place at the moment:</p>
  
  <pre><code>&lt;h2&gt;&lt;?php the_category(', ') ?&gt;&lt;/h2&gt;
  </code></pre>