You should set your publicly_queryable
argument to true
when registering your custom post type.
TAKE NOTE: Add flush_rewrite_rules()
, refresh the page once or twice and REMOVE IT IMMEDIATELY. You SHOULD NOT keep flush_rewrite_rules()
unless under the provisions as in the codex.
this is an expensive operation so it should only be used when absolutely necessary
Related Posts:
- Single custom post type page redirecting to 404 page
- Custom post type single page 404
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Getting hierarchical custom post type permalinks to work just like pages
- Custom Post Types 404 Issue
- Template for specific post of custom post type
- Custom post type archive 404’s with paginate_links
- Hierachical Custom post types permalinks not working
- How to disable a Custom Post Type Feed?
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- 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 Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- How to get a list of term names of the custom post type im currently on in single.php
- is_singular won’t call my functions?
- Removing CPT slug from URL results in 404 error for archive page
- WordPress monthly archive links result in 404
- Display “Post 2 of 4” on single post page?
- posts_nav_link on single post template
- Custom Taxonomy archive returns 404
- Disable single pages and archives and keep preview
- Displaying Meta Box Image
- Pagination with custom post types results in 404 issues
- Make custom post type display as a page
- Create second custom 404 page for selected post type
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- custom post type and custom taxonomy url conflict
- Disable single view in register_post_type [duplicate]
- Archive page for custom post type not working
- Redirect Single Post CPT (Custom Post Type) to a specific URL
- Need post_type_archive_title function but in ‘single’
- An empty Custom Post Type Archive page returns 404 in WP 3.1
- How to check the terms in single custom post type template
- How to show the archive / post type description on Single templates
- Made Custom Post Types, but single.php not working
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Posts of custom post type load the page template
- Custom taxonomy in URL showing 404
- Custom Post Type Draft Preview Goes to 404
- How do I display tags for a custom post type single page?
- Wrong request query on cpt and tax
- Custom post type not displaying content from single-{custom post type} page
- Single template showing all posts of that type
- Custom post URL 404 error
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Set a CPT slug as a base name for all the taxonomies
- WordPress randomly shows 404 errors
- How to display single post from custom post type loop?
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Custom post type permalink tag 404
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Hierarchical permalinks for custom post type and taxonomy
- Not Able To Render Single-CustomPostType.php File
- Custom post type pagination 404
- single-{post_type}.php not working
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- 404 Error on form submission within custom post type
- Associate page w/ specific single post template?
- page not found for single-type.php file
- Custom taxonomy page returns 404
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- How to filter a custom post type by custom taxonomy without 404
- Can’t access private custom posttype single- or archives-page
- Post type Permalink
- Custom post type categories gives 404 error
- Permalink Trouble with custom post types
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Permalinks not working (404) for the ‘item’ post type
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- Function to allow single post template based on custom taxonomy?
- Problem with custom loop navigation inside the blog page
- WordPress giving me the index
- Give active class to current page on a while loop WP query for custom post types listing
- custom post type – project link output via single-portfolio.php
- Sudden 404 pages on product category archives
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Show custom post status when logged out
- Custom post shows 404 after theme change
- Shortcode and get_template_part
- How to make “single post” permalink maintain it’s sub-page structure
- Assign for all post of a post type a specific single-post template
- Custom Post Type slug and WPML gets 404 error
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- 404 error next-page [2] PageNavi custom type taxonomy
- Edit single page from plugin
- What am I doing wrong with my taxonomy?
- How to set class to “current-page” on the currently viewed single post within a CPT
- How to display category wise posts on seprarate template
- Cannot use pages created on WP
- Pulling in Related Posts based on Post Type array
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- how to load custom single.php?
- Two single.php files?
- Conditional Tags If Custom Post Parent & Child?
- Submiting custom form give error 404
- How do I paginate a custom post type listing on a custom template page?
- Single custom post type page redirect to 404 page
- Custom post type single page fine for admin, 404 from front