/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Custom Feed Query function customFeedquery($query) { if(is_feed()) { $query->set('cat','-8'); // exclude category 8 return $query; } } add_filter('pre_get_posts', 'customFeedquery');