[Resolved] How to hide categories in the feeds?

I’d like to make it so that posts in one of my categories does not go out with the feed. The Category Visibility plugin used to do this, but it isn’t compatible with WP2.0.1. Does anyone know a simple way to accomplish this?

What I’m currently trying is throwing the line $posts = get_posts(‘category=-6’); just before the loop begins in the rss/rss2 feed templates. Is this a bad idea? Does anyone have a recommendation of a better way to make this happen? Thanks.

Its that first line that is really important… IF the feed is not for a category, query_posts and get everything except cat 6 posts. If however one is in category 6, don’t display anything in the feed. This keeps category 6 out of action as far as I can tell, with the added bonus of not mucking with the other feeds as far as I know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Resolved] How to hide categories in the feeds?’ is closed to new replies.