rssI have a client that was importing his twitter feed into his WordPress website and creating daily posts summarizing his twitter tweets.  He actually was using WordPress as an archive for his twitter posts because he tweeted about things that interested him.  He was active on Twitter and had many tweets published every day.  The tweets were being consolidated into a daily post (using the Twitter Tools WordPress Plugin) with the name Twitter Updates for .

However, he didn’t want the daily twitter posts included in his feedburner RSS feed as he pulled the feed into his Facebook account and he didn’t want the daily Twitter posts to dominate his Facebook RSS feed.

He asked me to find a way to exclude the Twitter Archive Category from the RSS Feed submitted to Feedburner.

I found 5 ways to do this:

  1. Advanced Category Excluder WordPress Plugin
  2. Ultimate Category Excluder WordPress Plugin
  3. Simply Exclude WordPress Plugin
  4. Modified Feedburner Category exclude tag
  5. Raw code in the functions.php file

A brief explanation of each option below.

Advanced Category Excluder WordPress Plugin

The Advanced Category Excluder WordPress Plugin‘s main goal is to enhance WordPress’s functionalities and to hide some unwanted categories, from defined parts of the blog.

The plugin can override your search results, your RSS feed listing, your category listing, and also your entry page, if you want to. This is great, for SEO reasons, for content separation, for grouping information, and handle them as real sub pages.

Ultimate Category Excluder WordPress Plugin

The Ultimate Category Excluder WordPress Plugin is a WordPress plugin that allows you to quickly and easily exclude categories from your front page, archives, and feeds. Just select which categories you want to be excluded, and UCE does all the work for you!

Ultimate Category Excluder was originally written by Kyle Slattery of

Simply Exclude WordPress Plugin

The Simply Exclude WordPress Plugin provides an interface to selectively exclude/include categories, tags, authors and pages from the 4 actions used by WordPress

  • is_front – When the user views the Front page.
  • is_archive – When the user views an category or tags Archive.
  • is_search – When the user views a search result page.
  • is_feed – When a Feed is viewed/requested.

Modified Feedburner Category Exclude Tag

First, find the category ID of the category you want to exclude in your WordPress Category listing.  Then go to your FeedBurner dashboard and click “Edit Feed Details.”  In the field “Original Feed”, enter the feed URL with the categories you want to exclude using the following syntax (assuming the category you want to exclude is #3):

If you want to exclude another category (i.e. exclude category 3 and 12)

Raw Code in the functions.php file

Insert this code in your theme’s template functions.php file.  The functions.php file is located in the /wp-content/themes/{theme-name}/ directory.  For example, if you were using the default WordPress theme, the functions.php file would reside in the directory /wp-content/themes/default/.

If you were trying to exclude the category #5 from the RSS feed, the code would be

function exclude_category($query) {
	if ( $query->is_feed ) {
		$query->set('cat', '-5');
return $query;

add_filter('pre_get_posts', 'exclude_category');

If you want to exclude multiple categories, simply add a comma “,” then a dash “-” followed by the category ID that you want to exclude. For example:

		$query->set('cat', '-5, -11, -18');

My Final Choice

I settled on the Simply Exclude WordPress Plugin as the final solution for my client.  It provided the ability to control visibility on the Front Page, Archive Page, Search process, and the WordPress Feed functions.

Let me know if I missed anything.