title: Get and display category options to posts on WordPress
body: <p>I have a blog index page which simply show all posts under the taxonomy <code>resources</code>.</p>
  
  <p>There are several <code>categories</code> defined under <code>resources</code>. For experimental purposes, blog post with the title <code>sample post</code> has the categories <code>article</code> and <code>eGuide</code> assigned to it.</p>
  
  <p>I'm trying to get the categories to display within a <code>ul</code> (a new <code>li</code> is generated for each <code>category</code>), but <code>get_the_category</code> doesn't seem to render anything.</p>
  
  <p><strong>I have the following markup:</strong></p>
  
  <pre><code>&lt;?php
  global $post;
  while ( have_posts() ) : the_post(); ?&gt;
      &lt;div class="card"&gt;
          &lt;div class="categories"&gt;
              &lt;?php get_the_category($post-&gt;ID); ?&gt;
              &lt;?php //the_tags('&lt;ul&gt;&lt;li&gt;','&lt;/li&gt;&lt;li&gt;','&lt;/li&gt;&lt;/ul&gt;'); ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;?php
  endwhile; 
  wp_reset_query(); 
  ?&gt;
  </code></pre>
  
  <p>As you can see, my previous approach was via tags (<code>the_tags</code>), which worked (a new <code>li</code> was generated for each tag). However, with <code>get_the_category</code>, I can't even get the categories to appear.</p>