StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-02-2012, 01:07 PM
Billmcq Billmcq is offline
Registered User
Pro Plus Member
 
Join Date: Oct 2009
Posts: 326
Default Exclude category from RSS feed

I am using the following to exclude a category from the website main rss feed , I do have a separate feed though JUST for this excluded category.

THe problem though is when I use the feed link that excludes that category and I select the "redirect" option in the genesis rss theme settings, the feed url redirects improperly. the genesis theme settings say unless I use feedburner, it probably wont work right. Is there a way using a functions file, or any other method for that matter) that I can change the main feed of the site from

http://www.westlawnumc.com/feed/
to
http://www.westlawnumc.com/feed/?cat=-57

without having to use feedburner?

I saw this:
Quote:
function myFilter($query) {
if ($query->is_feed) {
$query->set('cat','-5'); //Don't forget to change the category ID =^o^= }
return $query; } add_filter('pre_get_posts','myFilter');
...but I think the issue here is that this functions code eliminates the category from appearing in ANY feed, but I just need it not to appear int he main site feed. I still need to use this category for its own dedicated feed.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
exclude a category from an rss feed, but also have rss feed just for that same cat. Billmcq General Discussion 3 02-29-2012 04:48 PM
Exclude a category from RSS feed InAdvertent General Discussion 3 04-04-2011 09:21 AM


All times are GMT -5. The time now is 03:46 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.