Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » RSS, Feeds & Subscribing »

[SOLVED] Exclude Category from RSS


 
Prev Previous Post   Next Post Next
  #1  
Old Sep 28, 2012, 01:16 PM
theadventurebite
 
136 posts · May 2010
[SOLVED] Exclude Category from RSS

Trying to exclude a category from the RSS feed. Not having any luck with plugins or this function in the functions.php:

Code:
function myFeedExcluder($query) {
 if ($query->is_feed) {
   $query->set('cat','-98');
 }
return $query;
}
 
add_filter('pre_get_posts','myFeedExcluder');
I don't see Atahualpa using the standard commands they are using here.

Ideas?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude category from Recent Posts in sidebar paulae Sidebars & Widgets 17 Apr 9, 2013 08:34 AM
[SOLVED] How to exclude category menu from static pages kitfreeman Page & Category Menu Bars 3 Feb 25, 2012 07:58 PM
Hide the side bar but have no page, post or category ID to exclude. rainbowjammer Sidebars & Widgets 1 Jan 15, 2012 11:04 AM
How to exclude category menu bar from certain pages? suzannlarsen Page & Category Menu Bars 2 Jul 2, 2010 12:44 PM
Category Excluder Sidebar invisible hidden exclude Neil Grayson Forum How-To 1 May 25, 2009 07:02 PM


All times are GMT -6. The time now is 04:23 PM.


Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.