Echo Current Post Category in Single Post Page
Current Post Category with Link
Add this code in the Single.php where you want to display the categories you selected for the blog post.
<?php echo get_the_category_list(); ?>
Result Html
<ul class=”post-categories”>
<li><a href=”Category Link” rel=”category tag”>Category name 1</a></li>
<li><a href=”Category Link” rel=”category tag”>Category name 2</a></li>
</ul>
Current Post Category without Link
<?php // Get terms for post $terms = get_the_terms( $post->ID , 'category' ); // Loop over each item since it's an array if ( $terms != null ){ foreach( $terms as $term ) { // Print the name method from $term which is an OBJECT echo'<span>' ; print $term->name; // Get rid of the other data stored in the object, since it's not needed echo'</span>' ; unset($term); } } ?>