Custom Post Types – Current section heading above the loop?

If the template page in question is the archive index for the custom post type, you can simply create a custom template file, archive-{post-type}.php, and add in the Title and custom text.

If you don’t want to create a custom template file, you can use this boolean as a conditional in your existing archive.php template file, for creating custom output:

<?php is_post_type_archive( $post_types ); ?>

To retrieve the Title for a Post Type archive:

<?php post_type_archive_title( $prefix, $display ); ?>

To retrieve the current Post Type (for use in PHP):

<?php get_post_type( $post ) ?>

To retrieve all Post Type information (e.g. to output Title, Description, etc. if configured):

<?php get_post_type_object(); ?>