<?php 
  $terms = wp_get_post_terms( $post->ID, 'custom_cat'); 
     foreach ( $terms as $term ) { 
        echo "<h4>"; 
        echo $term->name.' '; 
        echo "</h4>"; 
      } 
?>