For our customization want to display category name of custom post type by post id then place the following exact location.

$terms=get_the_terms( $post->ID, 'Enter_your_taxonomy_here' );
foreach($terms as $term)
{
	echo $term->name;
}

Have any doubt, then comment here!

Leave a Reply

Your email address will not be published. Required fields are marked *