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
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- tag.php doesn’t work with tags on a custom post type post?
- Assign single template to multiple custom post types?
- 404 on child page when parent page slug is identical to custom post type
- Custom taxonomy query for a custom post type
- Child pages on hierarchical Custom Post Types 404s
- Need some templating advice for templating with custom post types and taxonomies
- Assign Page Template Within A Custom Post Type
- Page Templates – this code only works for one Custom Post Type
- How do I redirect all 404 errors of a specific post type to another URL?
- Custom Post Type – Archive page title
- How do I create new content pages for my Custom Post Type?
- Display posts of child category in template
- custom taxonomy – Template not working
- Pagination gives 404 error
- Create separate template for shared custom taxonomy with shared terms
- Custom Post Type slug same as page name causing a conflict
- wordpress 3.4 template files in subdirectories
- How do I provide a “show all posts” link in a paginated term archive?
- 404 error on custom post type
- After updating a page, all pages on the site used the index.php template
- How can I force custom post type to use a specific template?
- Page Templates Drop Down Select for Custom Post Types
- Using custom page templates with plugin [duplicate]
- How To Create A Custom Taxonomy 404 Page
- Plugin templates in which directory
- Using wordpress template tags within an array
- Include custom post type single template, but respect theme override of template if it exists
- Custom post type not using custom template
- Create template for taxonomy results limited by Custom Post Type
- WordPress Custom Post Type Children Template
- 2 Templates 1 custom post type according url
- How to prevent a CPT’s slug and page slug from conflicting with each other?
- Adding the_content() in custom template email
- Migrating a taxonomy’s tags to the native category
- Custom posts template page
- Add Previous/Next Buttons to CPT Single Pages Only
- Custom taxonomy template list not working (404)
- Templates for hierarchical custom post type
- Apply template by path/slug related to custom post type?
- Custom Post Type Specific Post Template
- How to create a archive template for custom post type [duplicate]
- WP not recognizing custom post type / template
- Create a custom taxonomy template that loops through child categories in term order?
- My template won’t apply, theme still fallback to index.php
- One Custom Post Type two different Templates
- On click some element i want to use some template
- Post template with breadcrumb needs to show page navigated from
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- Custom post type not pulling CSS
- Accessing download link from the loop with WP Download Manager Pro
- Enabling hierarchical in a Custom Post Type gives error 404
- Display a custom 404 page without a redirect
- Standard Page Child of CPT Not Found (404)
- WordPress Custom Post Type – Post Attribute: Template. Template shows up and saves on the back end, but the default theme file is being rendered
- How to make a custom search template for custom taxonomy?
- Custom post type with two templates
- Custom Post Type tag taxonomy “Page Not Found”
- DIVs not showing correctly on CPT?
- custom fields not showing before get_header
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- Pages displays correctly but returning a 404 error in http header.
- Load different template for CPT (in loop) in my plugin?
- Modifying and Displaying URL’s in a Post Template using parse_url
- Template with Custom Post Type (Custom Tables) does not work
- 404 with Custom Post Type
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- how to pass args for archive.php query?
- CPT Template Option to Top
- How to create custom page templates with default page layout framework?
- Adding custom theme template to custom post type [duplicate]
- How to debug a 404 error on pages whose content is perfectly displayed when I explore it?
- I want to show a list of posts under specified categories
- Single custom post type page redirect to 404 page
- Custom post type single page fine for admin, 404 from front