danieltrezub
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: WP 2.9.2 – feed error – blank feed with filterBump :S
Hasn’t anyone seen something like this?
Hi, guys.
I am having an issue like this. However, my feed is empty after the update to 2.9.2.
I use a small plugin to filter my feed to include just one category.
the code is the following:
<?php /* Plugin Name: Feed Filter Plugin URI: Description: Filters your feed to include only certain categories. Version: 0.1 Author: Daniel Trezub Author URI: http://www.gameblogs.com.br Copyright 2010 Daniel Trezub (email : xxxx) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ add_filter('pre_get_posts','filterRSSQuery'); function filterRSSQuery($query) { if ($query->is_feed) { $query->set('cat','49'); } return $query; } ?>If I disable this little plugin, the feed works ok. If I enable it, the feeds does not validate and shows empty. Note that before the update to 2.9.2. everything was working great.
Any ideas, please?
Viewing 2 replies - 1 through 2 (of 2 total)