I’m also getting an error similar to that. The feed links get generated and put into the and that is where your 404 error is coming from.
Here’s some code to disable feeds for a custom post type. https://gist.github.com/jaredatch/8610187#file-gistfile1-php
<?php
/**
* Disable the "foo" custom post type feed
*
* @since 1.0.0
* @param object $query
*/
function ja_disable_cpt_feed( $query ) {
if ( $query->is_feed() && in_array( 'foo', (array) $query->get( 'post_type' ) ) ) {
die( 'Feed disabled' );
}
}
add_action( 'pre_get_posts', 'ja_disable_cpt_feed' );
Related Posts:
- Custom post type single page returns 404 error
- Getting hierarchical custom post type permalinks to work just like pages
- Custom post type pagination 404 fix?
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Custom post type 404s with rewriting even after resetting permalinks
- Custom post type archive 404’s with paginate_links
- Pagination throws 404 error on custom taxonomy archive pages
- 404 on child page when parent page slug is identical to custom post type
- Single custom post type page redirecting to 404 page
- Hierachical Custom post types permalinks not working
- Child pages on hierarchical Custom Post Types 404s
- Custom Post Type Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- Pagination throws 404
- How do I redirect all 404 errors of a specific post type to another URL?
- WordPress monthly archive links result in 404
- Remove Slug from Custom Post Type results in 404
- How to remove CPT comment feed from head?
- Custom Taxonomy archive returns 404
- Pagination gives 404 error
- Custom Taxonomy 404
- Pagination with custom post types results in 404 issues
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- 404 error on custom post type
- Multisite custom post type’s single page 404
- custom post type and custom taxonomy url conflict
- Why my custom post posts aren’t showing (404 error / page not found)
- An empty Custom Post Type Archive page returns 404 in WP 3.1
- How To Create A Custom Taxonomy 404 Page
- Bizarre Permalinks Issue: 404 Errors Everywhere
- Custom taxonomy in URL showing 404
- Custom Post Type Draft Preview Goes to 404
- Custom Post Type / Two level deep taxonomy (cat. and subcat.) uri problem (error 404)
- How do I display content to users who are not logged in instead of 404 on Private custom posts?
- Help with Elementor Pagination CPT archive 404 problem
- Trouble with CPT Child 404
- Using taxonomy term in CPT permalink – Pages 404’s
- Custom post URL 404 error
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- How to prevent a CPT’s slug and page slug from conflicting with each other?
- WordPress randomly shows 404 errors
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Custom post type archive pagination 404
- Custom post type permalink tag 404
- Custom post type / taxonomy rewrite archive page 2 gives 404
- Hierarchical permalinks for custom post type and taxonomy
- cutsom posts 404ing
- 404 in custom post type feed with mistake permalink
- 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?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom rewrite to fetch feed data
- Custom WP_Query always respond with 200 status even when no entry
- page not found for single-type.php file
- One Custom post type 404’s others don’t
- Custom taxonomy template list not working (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
- Custom Post 404
- Custom taxonomy template shows 404 Error
- Post type Permalink
- 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
- Custom Post Type Child Won’t Come Through With Pretty Permalinks
- Problem with custom loop navigation inside the blog page
- Custom post type single page 404
- Sudden 404 pages on product category archives
- Custom taxonomy returns 404 even with saving permalinks
- Show custom post status when logged out
- How can I get custom post types to recognize pretty permalink variables?
- 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
- Published page but it is page not found
- 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
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custom 404 redirect for a luddite
- 404 error next-page [2] PageNavi custom type taxonomy
- Custom Post Type Rewrite – Page Not Found
- CPT unsaved draft gives error 404 – when Post Formats support enabled
- Pages displays correctly but returning a 404 error in http header.
- Pagination in custom loop for custom post type throwing 404 error
- 404 for children in hierarchical custom post type
- Submiting custom form give error 404
- 404 with Custom Post Type
- 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
- Custom Post Type, 404 error
- How to debug a 404 error on pages whose content is perfectly displayed when I explore it?
- Single custom post type page redirect to 404 page
- Custom post type single page fine for admin, 404 from front