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
- How to disable the single view for a custom post type?
- Custom post type single page returns 404 error
- Custom post type single-{custom}.php not working
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Create a custom archive page for a custom post type in a plugin
- What is singular.php?
- Custom Post Type Settings page, choose page to display archive
- Adding a menu item for a Custom Post Archive
- Conditional for single-{post-type}.php
- Custom Post Type Archive Page not showing
- Adding custom post type archives to a WordPress menu
- How to set a custom post type to have viewable future posts
- Custom Post Type Template – Archive
- Page Template as Custom Post Type Archive
- Custom post type yearly/ monthly archive permalinks
- Can’t get post id on page that is a custom post type archive
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Template for specific post of custom post type
- How do you create an archive for a custom post type from a plugin?
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Single custom post type page redirecting to 404 page
- How to List All Custom Post Types Names (Not Posts)
- Change title in head on Archive page
- Custom Post Type Archives with 0 Posts Redirects as 404
- Pre get posts for single post
- How to filter custom post type archive by meta value
- What are the advantages of using a custom post type archive?
- Page is defaulting to archive page and not designated template
- custom post type archive page url to point to Page permalink
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- “Edit” option for custom post types archive page
- is_singular() not working if called via callback function of admin-ajax.php
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- Custom Post Type archive as front page
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- Get monthly archives for custom post type
- Is it possible to remove the posts_per_page limit on a specific post type?
- Add Settings to Custom Post Type
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- Custom post type permalink structure with the category also acting as an archive
- How to get_queried_object on multiple objects?
- Custom Post Type Works but Still Shows “Page Not Found”
- Assign Page Template Within A Custom Post Type
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Rewrite custom post type url’s adding meta box values
- I can’t set meta_key in my custom post type query
- How to get a list of term names of the custom post type im currently on in single.php
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- is_singular won’t call my functions?
- Compare 3 custom fields and sort by oldest
- Post type archive page not working
- Adding Sticky functionality to Custom Post Type Archives
- Create sub single pages
- Using previous_post_link and next_post_link to wrap around post sequence
- paginate function in archive for custom-post-type
- Adding custom post types to archive.php
- Custom Post Type – Archive page title
- Alphabetical sorting of custom post type – one letter per page
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- How do I create new content pages for my Custom Post Type?
- Archive page for taxonomy of custom post type
- Add meta data to the custom post type ARCHIVES page
- Should I change these content meta types before building complex archive page?
- Display “Post 2 of 4” on single post page?
- posts_nav_link on single post template
- archive-{$post_type}.php not loading. instead the default archive.php loads
- Post Rank on Single Post page based on custom field
- Getting taxonomy terms used by custom post type
- Disable single pages and archives and keep preview
- Custom post type archive sorted and grouped by date in post meta field
- Archive or taxonomy pages not working for custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Displaying Meta Box Image
- Custom Post Type archive giving 404
- How to create archive page for taxonomy terms within custom post type
- Custom template for post type not working
- How to make an archive page displaying posts in a date range
- Categories and Tags not working!
- 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
- WordPress custom post type archive with description
- Custom-post-type-archive: posts sorted/filtered by year?
- How to list custom post types?
- I am facing problem in my archive page , it is partially working
- Disable single view in register_post_type [duplicate]
- add_rewrite_endpoint() and Custom Post Type Archive
- Custom post type archive page pagination
- Add the current menu item CSS class to a custom page type archive in WordPress menu
- Display Next/Prev when looping Custom post-types archive?
- Add custom post type archives to search results?
- Redirect Single Post CPT (Custom Post Type) to a specific URL
- Need post_type_archive_title function but in ‘single’