I am sure there are more graceful solutions, but my resources(meaning technical knowledge and time) are limited. I got it to work in the .htaccess. Excluding more than one category doesn’t seem to work, so I had to add the categories to be included instead, like this:
RewriteRule ^feed$ ?feed=rss2&cat=1+2+3+6+7 [L]
RewriteRule ^feed/$ ?feed=rss2&cat=1+2+3+6+7 [L]
But of course, for every problem solved another one comes along. I noticed that my category feeds (https://site.org/feed/section/category/feed) got the title from the site, just like the main feed (https://site.org/feed) does. This makes them look indistinguishable in a feed reader, confusing users. Obviously I want the main feed to be titled “site name” and the category feeds to be titled “site name: category”. It would also be nice to have category-specific links and descriptions. So I used some code found elsewhere on this forum:
<?php
if (is_category()) {
foreach((get_the_category()) as $cat) {
$titulo = get_bloginfo_rss('name') ." :". $cat->cat_name;
$descripcion = $cat->category_description;
$enlace = get_bloginfo_rss('url') . "/" . $cat->category_nicename . "/";
}
}
else {
$titulo = get_bloginfo_rss('name');
$descripcion = get_bloginfo_rss("description");
$enlace = get_bloginfo_rss('url');
}
?>
<channel>
<title><?php echo $titulo; ?></title>
<link><?php echo $enlace; ?></link>
<description><?php echo $descripcion; ?></description>
It works fine for the category feeds.
But here’s the newborn problem: Because the main feed actually is a composition of category feeds, the system interprets it as one – thus grabbing the title from the category that happens to be assigned to the first post.
Any ideas?