title: How to limit the results of the_category in Wordpress?
body: <p>I'm building a wordpress theme, but got stuck on a problem. It's on the blog archive page. When you go to the blog, you see a list of blog posts. And on each post preview, you see the author, title, et cetera. My problem is that I'm trying to display one category for each post preview. I don't want to show people an entire list of every category a post has. I want to limit the results of the_category() to <strong>ONE</strong>. </p>
  
  <p><a href="https://i.stack.imgur.com/ooy2O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ooy2O.png" alt="enter image description here"></a></p>