• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Menu
  • Back to Top
  • Services
    • Web Design
    • Graphic Design
    • Web Hosting
  • Portfolio
  • Pricing
    • FAQ’s
  • About Me
    • Blog
    • Contact

Excluding Categories In Events Manager RSS Feed

Glasses On Calendar

February 28, 2018Dan BrubakerComment

The Events Manager plugin is a powerful, lightweight WordPress plugin useful for doing exactly what its name indicates. It adheres closely to WordPress coding standards which is a huge plus for theme developers. I’ve used it on many sites now and have found it to be very comprehensive and flexible.

I have often used a custom feedblock in a MailChimp campaign to display events and there have been times that I have needed to exclude certain event categories from the event RSS feed.

The events created by Events Manager are actually custom post types (CPT) and WordPress has built-in features for modifying the output on a CPT’s RSS feed.

Excluding the Event Categories from the Feed

To exclude specific event categories from the events feed, start modifying the feed URL by designating the events custom post type. Appending “?post_type=event” to the feed URL (http://example.com/feed/) will only output events in the RSS feed. Now add “&event-categories=-1” to the end of the URL to tell WordPress to output only events NOT in the event category with the ID of 1. Exclude multiple categories by separating the ID’s with a comma. (Not sure how to find the category ID? Follow the tutorial here.)

Your final feed URL should look something like this:
http://example.com/feed/?post_type=event&event-categories=-1,-3,-8

The events RSS feed at that URL will output all events but NOT events in categories 1, 3, and 8.

There are many ways to construct your feed URL to output just the data that you are looking for. Check out some other options on the WordPress Codex here.

This article over at WPBeginner helped me come to this solution.

Filed Under: Tips & Code Snippets

About Dan Brubaker

I am a husband, father, evangelist, web designer, and sometimes farmer. My family and I live full-time in an RV and travel around representing Servant's Heart Camp. My workspace is small, but the window view is great!

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Contact Me

  • (717) 991-1426
  • danbru@gmail.com

Mailing Address:


5050 Colebrook Road
Hershey, PA 17033

RSS Ministry Updates

  • Ministry Changes & Moving November 4, 2020
  • Revival Ministry and HFA Crusade September 23, 2020
  • Attend Our Online Rally! April 16, 2020
  • Winter Ministry & Outreach February 11, 2020
  • Happy New Year! January 1, 2020
  • Last Meeting And Winter Work November 18, 2019
  • Continued Fall Revival Meetings November 4, 2019
  • Visiting The Quecreek Mine Rescue October 14, 2019
  • Menu
  • Back to Top
  • Services
    • Web Design
    • Graphic Design
    • Web Hosting
  • Portfolio
  • Pricing
    • FAQ’s
  • About Me
    • Blog
    • Contact

    Services

  • Web Design
  • Graphic Design
  • Web Hosting

    Information

  • About Me
  • Portfolio
  • Pricing
  • Privacy

    Contact Me

  • (717) 991-1426
  • danbru@gmail.com
Log In
Copyright © 2023 — Brubaker Design Services