If you’re within the loop then the_title() should return the post type’s title. post_type_archive_title is specifically for archives.
To get the human readable name of the post type, though, I’ve not seen anything better than this from the Codex:
$obj = get_post_type_object( '30-day-boot-camp' );
echo $obj->labels->singular_name;
Related Posts:
- Archive page for custom post type not working
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Create a custom archive page for a custom post type in a plugin
- Custom Post Type Archive Page not showing
- Template for specific post of custom post type
- Page is defaulting to archive page and not designated template
- custom post type archive page url to point to Page permalink
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Add Settings to Custom Post Type
- Custom post type permalink structure with the category also acting as an archive
- Custom Post Type Works but Still Shows “Page Not Found”
- Rewrite custom post type url’s adding meta box values
- I can’t set meta_key in my custom post type query
- Archive page for taxonomy of custom post type
- Add meta data to the custom post type ARCHIVES page
- Display “Post 2 of 4” on single post page?
- Disable single pages and archives and keep preview
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Make custom post type display as a page
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Custom query variable – get wordpress to redirect to nice permalink url
- Disable single view in register_post_type [duplicate]
- add_rewrite_endpoint() and Custom Post Type Archive
- Custom post type archive page pagination
- Add custom post type archives to search results?
- Need post_type_archive_title function but in ‘single’
- Second Custom Post Type Archive
- How do I get the permalink structure to work like this?
- How to check the terms in single custom post type template
- How to show the archive / post type description on Single templates
- is_main_query() not working for WP REST API
- Made Custom Post Types, but single.php not working
- WP_Query | ‘post_type’ doesn’t work
- Editable Meta Data for Custom Post Type Archive Template
- Archives for Custom Post Types (without Pages)
- Set up Custom-Post-Type Author Archive
- How do I display tags for a custom post type single page?
- Custom post type templating problem
- Single template showing all posts of that type
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Custom post type archive page blank
- Creating a Custom Post Type
- Custom Post Type slug same as page name
- How to display single post from custom post type loop?
- Not Able To Render Single-CustomPostType.php File
- Associate page w/ specific single post template?
- How to set up Custom Post Type archive page as Front page
- Custom Permalinks For CPT and pages with parent. Advanced WordPress
- How to integrate single and archive templates for custom post type in any WordPress theme
- ACF for custom post type archive pages: which hook to use?
- Show categories of custom post type and not all posts
- Can’t access private custom posttype single- or archives-page
- Custom Post Type with Configurable Sidebar via ACF
- Query Posts that have Custom Taxonomy
- Archive page for custom post type and custom taxonomy
- Order Custom Post Type Archive by multiple values in functions.php
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- How to have multiple archive pages?
- Create a Custom Path to Archive
- Function to allow single post template based on custom taxonomy?
- WordPress sitemap with Custom Post Types
- WordPress giving me the index
- Display All Courses in Course Archive Page
- Archive page of CPT’s custom Taxonomy
- Getting Same Description in All the Custom Taxonomy Posts
- Archive page for WordPress Custom Post Type doesn’t show pagination from paginate_links()
- Custom post type archive URLs with a single taxonomy
- Custom post type author issues
- Custom Post Type / Taxonomy not displaying archive
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- pagination problem listing custom post types of taxonomy in wordpress
- ACF Pro Accessing fields on a Custom Post Type
- Do not show child pages within a file page
- Permalink for custom post type pages not working
- Set archive of custom post type like ‘posts’ page in reading settings is set
- Custom taxonomy with custom post type archive page
- Assign for all post of a post type a specific single-post template
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custome post type “tags” pick default archive instead of custom post type archive
- Customize url from the_terms
- Want to display my custom date archive to date.php but dont know how
- Edit single page from plugin
- Help with Multi Level Category Archive Page
- Highlight a Post on archive page if it has a new comment?
- Display custom post type archive on page.php template
- Pagination fault in custom post type archive page [duplicate]
- Permalink of custom post type partly broken
- Custom Post Type Archive Links Not Working
- CPT archive as home page
- Archive page of filtered posts
- Two single.php files?
- Why is this custom post type defaulting to archive.php?
- Archive Page Pagination not working
- Custom taxonomy archive page not routing?
- single-mySlug.php works: archive-mySlug.php does not. Custom Post Type
- has_archive for default post type
- Pagination for Custom Post Type with Multiple Types
- Custom Post Type Archive Title Lowercase
- Pagination not working only on Archive-Name.php using new WP_Query
- Can’t add custom post type archive page to menu