Return to Snippet

Revision: 52369
at October 21, 2011 02:27 by florent


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 Feeds 

Initial Tags
wordpress

Initial Language
PHP