That worked! Thanks so much!
Thanks Esmi for your reply.
I want to show the different categories that the post has been appointed.
Do I just need to put the code within the loop? If so, where would be the appropriate place?
Here’s my loop for a single post:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="single-post">
<h2 class="title"><?php the_title(); ?></h2>
<h3 class="author">By <?php the_author() ?></h3>
<?php the_content(); ?>
<?php the_tags( '<p class="tags"><strong>TAGS:</strong ', ', ', '</p>'); ?>
</div>
<div class="comments-template">
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
thanks for your help!