WordPress.org

Ready to get started?Download WordPress

Forums

Exclude one category from RSS feed in WP2.0 (4 posts)

  1. gravestmor
    Member
    Posted 8 years ago #

    I want to exclude one category from my RSS feed.

    I used to do this by including:

    if(isset($_GET['feed'])) {
    $cat=-14;
    }

    before the:
    require('wp-blog-header.php');

    in the header

    However after upgrading to WP2.0 it does not seem to work anymore.

    Anyone have any ideas?

    Thanks

    Marcus

  2. gravestmor
    Member
    Posted 8 years ago #

    Anyone?
    bump.

  3. WPChina
    Member
    Posted 8 years ago #

    Check this post here: http://wordpress.org/support/topic/56824

    To me it doesn't seem like a really graceful solution, as I would rather not see commas and such in the URL and thereby show users that they can add their own numbers (and omit numbers) to show/notshow certain categories. But it works.

  4. gravestmor
    Member
    Posted 8 years ago #

    well,
    i don't really want to change the feed address - so that old subscribers don't need to resubscribe etc.

    is there a way to the regular rss feed ( /wp-rss2.php ) but still exclude a category?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags