WP 3.1 breaks RSS customization via exclude_category?
-
I’ve been using a standard exclude_category call in my functions.php file for years in order to exclude things like tweets from my main RSS feed. Since upgrading to WP 3.1, it appears this no longer works. Did something change with pre_get_posts or something? My code is below —
function exclude_category($query) { if ( $query->is_feed && $query->query_vars['all'] != 'true' ) { $query->set('cat', '-473,-281'); } return $query; } add_filter('pre_get_posts', 'exclude_category');
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘WP 3.1 breaks RSS customization via exclude_category?’ is closed to new replies.