Quantcast
Channel: How to use has_archive but disable feed per post type? - WordPress Development Stack Exchange
Browsing all 4 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

How 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
Browsing all 4 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>