↧
Answer by Ian Dunn for How to use has_archive but disable feed per post type?
I haven't tested, but it should be as simple as:register_post_type( 'slug', array('has_archive' => true,'rewrite' => array('slug' => 'slug','feeds' => false, ),);
View ArticleAnswer by Robert Went for How to use has_archive but disable feed per post type?
I just got this working in a theme by checking if we're on the archive page for an array of custom post types and then removing the feed link actions:function themename_remove_feed_links() { if (...
View ArticleAnswer by Tomas Buteler for How to use has_archive but disable feed per post...
I ran into this issue today. I don't know if it's the best way, but here's how I solved it (with has_archive still set to true, of course):// First we remove WP default feed actions// If we stop here,...
View ArticleHow to use has_archive but disable feed per post type?
What is the best way to disable feeds per post type but keep has_archive enabled?
View Article