How to output the label of a field in a template?
This code will print all labels .

     $entity_type = 'node';
     $bundle_name = 'CUSTOM'; //machine name of your content type


  foreach ($node as $key =&gt; $value) {

        $field_name = $key;

        $info = field_info_instance($entity_type, $field_name, $bundle_name);

        $label = $info['label'];

        print $label;
        print "&lt;br&gt;";
   }


You can modify it according to your need.