Posts Tagged ‘feed’

WordPress: How To Exclude Category From RSS Feed

If you need to exclude a specific category from your RSS feed, put the following code in your theme’s functions.php. Go to Appearance | Editor | Theme Functions (functions.php) // Excludes Category from RSS Feed function exclude_catid_feed( $query ) { if ( $query->is_feed ) { $query->set( ‘cat’, ‘-1’ ); } return $query; } add_filter( ‘pre_get_posts’, ‘exclude_catid_feed’);…
Read On…