Two options:
- Use conditional code inside of
404.php
, to output different content/markup for the post-type - Intercept the template at
template_redirect
, and include a separate template file for a 404 for the post-type.
Personally, I’d go with option 1, as it is easier and more intuitive.
Related Posts:
- Setting a custom sub-path for blog without using pages?
- Custom Post Types 404 Issue
- Add Content to Page without shortcodes
- Loading custom page template via plugin
- How to quickly switch custom post type singular template?
- is_page_template not working as expected
- Help with CPT template pagination
- Create Template for Custom Post Type same like for Page
- Filter widget outputs
- Custom post type pages return 404 page?
- How to get the current category with custom posts
- Custom permalink structure for remote content pages
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Problem with custom loop navigation inside the blog page
- A certain theme is forcing it’s singular post layout
- Question on templates
- Custom post type option page template
- How can I load Template file from wordpress plugin
- How can I find out what template is my custom post type using?
- Loading a template for a URL pattern
- Custom Homepage As Single Page or Custom Post Type?
- Using custom post types within a section of a template
- How do I paginate a custom post type listing on a custom template page?
- Custom Post Type Template Based on Page Slug?
- using a template for more then 1 page
- Custom taxonomy returns 404
- Show Custom Post Type meta boxes only on Page Edit
- Adding the_content() in custom template email
- Creating a Page Template to display all items from a Custom Post Type
- Why does my content disapear when I make a page to match an archive name?
- Adding Page Templates to post but it ignored it
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Custom post type archive pagination 404
- Template for all categories of a custom post type?
- Custom post type permalink tag 404
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Custom Post Type Template Alternative
- Hierarchical permalinks for custom post type and taxonomy
- Migrating a taxonomy’s tags to the native category
- General advice on addressing content-centric pages
- Flush Rewrite Rules when new site is created on network
- Top Level pages in wordpress giving 404, but child pages working fine
- Fields for different parts of a page
- next_/previous_post_link() `in_same_category` appears to fail when true
- Multiple templates for single custom post type
- WordPress custom taxonomy template not working
- How do you create a custom template to display a category with an image and related posts below?
- cutsom posts 404ing
- WordPress Custom Search by post_type
- How can I get this request to use the Custom Post Type page template instead?
- 404 in custom post type feed with mistake permalink
- How to specify a template for a path like http://example.com/something?
- Custom templates for a specific category
- Archive for a Taxonomy of a Custom Post type
- Pages Become “Archive” Instead of Using Page Template
- How can I set the page template of a new custom post type post?
- Custom post type pagination 404
- Page not found for custom post type UI plugin and taxonomy
- How to solve this custom post type goes to 404 page?
- WordPress 3.9 not using custom template
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Multiple single templates?
- Template files for Custom Post Type and Taxonomy
- Set templates for custom post types
- How to Create Template File for Parent Page of Custom Post Type
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom post_type search pages
- 404 Error on form submission within custom post type
- Custom rewrite to fetch feed data
- how to remove pages loading with the archive templates
- Custom URL redirect in WP
- Main query not querying any posts in custom taxonomy template
- Custom Empty Results page for my Custom Post Type
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- Associate page w/ specific single post template?
- Custom WP_Query always respond with 200 status even when no entry
- Custom posts template page
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- How can I use archive-{post_type}.php theme template?
- Include php on a specific page template
- get comments by current user inside page template
- page template for custom post type
- Page Template Dropdown For Custom Post Types
- make permalink go to a custom single.php file
- Add Previous/Next Buttons to CPT Single Pages Only
- Creating Sections for Post Types
- page not found for single-type.php file
- Custom taxonomy page returns 404
- Custom post types with categories in template
- Creating separate feeds for custom post types
- Which file/template is in charge of taxonomies for custom post types?
- One Custom post type 404’s others don’t
- How can I trace inconsistency in loading a template?
- How to integrate single and archive templates for custom post type in any WordPress theme
- How to get_term_meta on single custom post?
- Custom taxonomy template list not working (404)
- Custom post type permalink returns 404 when set to private
- Assigning alternate single-{cpt} template based on blog_id in multisite
- providing access to post_id or post inside functions.php
- How do I find a way to create a global single.php for a custom post type?