Return to Snippet

Revision: 54275
at December 18, 2011 12:27 by swoicik


Initial Code
// Custom Feed Query
function customFeedquery($query) {
	if(is_feed()) {
		$query->set('cat','-8'); // exclude category 8
		return $query;
	}
}
add_filter('pre_get_posts', 'customFeedquery');

Initial URL

                                

Initial Description

                                

Initial Title
Exclude Category from Feed

Initial Tags
wordpress

Initial Language
PHP