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
- Custom Post Type – archive working – single is not
- List of users that clicked a ‘Join’ button at single post
- page not found for single-type.php file
- Custom taxonomy page returns 404
- Inserting custom fields into single.php
- One Custom post type 404’s others don’t
- hide specific div on single.php [closed]
- Custom taxonomy template list not working (404)
- Custom post type permalink returns 404 when set to private
- How do I find a way to create a global single.php for a custom post type?
- Custom post type slug 404
- How to use single.php for creating, reading and editing Custom Posts with ACF
- How to filter a custom post type by custom taxonomy without 404
- Custom Post 404
- Can’t access private custom posttype single- or archives-page
- Custom taxonomy template shows 404 Error
- How to show custom field on specific custom post type posts only when filled
- Post type Permalink
- Custom post type categories gives 404 error
- adding custom post type “name” to single template
- Direct form to a custom page template
- trying to show single post but displays all post on a custom post type
- Custom Post Type Specific Post Template
- 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
- Safe to throw 404 error in request filter?
- 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?
- Conflict in function to allow single post template based on category
- Custom Post Type Child Won’t Come Through With Pretty Permalinks
- 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
- Loop all post on single.php
- Can’t Export Custom Post Types With Export Tool In A Custom Theme
- custom post type – project link output via single-portfolio.php
- Sudden 404 pages on product category archives
- Custom taxonomy returns 404 even with saving permalinks
- 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
- How can I get custom post types to recognize pretty permalink variables?
- get_the_terms child terms for current post/custom post only
- Shortcode and get_template_part
- Enabling hierarchical in a Custom Post Type gives error 404
- Standard Page Child of CPT Not Found (404)
- Custom Post Type Front Page Gives 404
- Why custom post redirecting to index page?
- How to make “single post” permalink maintain it’s sub-page structure
- Published page but it is page not found
- Assign for all post of a post type a specific single-post template
- Pagination for custom query returns 404
- New entries to custom post type produce 404 on single view
- Custom Post Type slug and WPML gets 404 error
- Add new custom post type screen (admin area) results into 404
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- custom post type single page
- custom post type single post preview for pending status
- pre_get_posts gives 404 error on Custom Post
- Custom 404 redirect for a luddite
- WP gives 404 error for custom post type with GET variable
- 404 error next-page [2] PageNavi custom type taxonomy
- How to show data content from single page which is from custom post type?
- How to get adjacent_post custom_field value
- Single Page of Custom Post Type Not Showing the Content Of post
- Edit single page from plugin
- Custom Post Type Rewrite – Page Not Found
- What am I doing wrong with my taxonomy?
- How to set class to “current-page” on the currently viewed single post within a CPT
- DIVs not showing correctly on CPT?
- Display Taxonomy Term for CPT on single-CPT.php
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- 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
- Custom post type single display is ommited
- Single page problem when permalink type changed
- Pages displays correctly but returning a 404 error in http header.
- Pagination in custom loop for custom post type throwing 404 error
- how to load custom single.php?
- Two single.php files?
- 404 for children in hierarchical custom post type
- Single Page for two custom post types
- Conditional Tags If Custom Post Parent & Child?
- Query child posts on parents single.php?
- Submiting custom form give error 404
- 404 with Custom Post Type
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- is_singular won’t call my functions?
- How do I paginate a custom post type listing on a custom template page?
- WordPress custom post type post and category links 404
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Pagination on category pages using wp_pagenavi causes 404 errors
- Can I have a specific template for products even if they are standard posts and not CPT?
- Custom Post Type, 404 error