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 Types 404 Issue
- 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
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- 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?
- Removing CPT slug from URL results in 404 error for archive page
- 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
- 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 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
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- 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)
- Wrong request query on cpt and tax
- 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
- Set a CPT slug as a base name for all the taxonomies
- 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
- Top Level pages in wordpress giving 404, but child pages working fine
- 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?
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- 404 Error on form submission within custom post type
- 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
- Custom taxonomy page returns 404
- 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
- Custom post type categories gives 404 error
- Direct form to a custom page template
- Permalink Trouble with custom post types
- 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
- Can’t Export Custom Post Types With Export Tool In A Custom Theme
- 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
- Custom post shows 404 after theme change
- 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
- Custom post type REST api 404: Updating failed. No route was found matching the URL and request method
- Single custom post type page redirect to 404 page
- Custom post type single page fine for admin, 404 from front
- Custom Post Types, Single Posts returning 404 Errors – flushing permalinks does not correct
- Custom post type category pages pagination returns 404
- Cannot create custom post types with a specific name
- Custom Post Type – archive working – single is not