{"id":1896540,"date":"2019-10-18T13:19:24","date_gmt":"2019-10-18T17:19:24","guid":{"rendered":"https:\/\/theeventscalendar.com\/knowledgebase\/the-events-calendar-rss-feed\/"},"modified":"2026-04-22T01:47:01","modified_gmt":"2026-04-22T05:47:01","slug":"event-rss-feed","status":"publish","type":"post","link":"https:\/\/theeventscalendar.com\/knowledgebase\/event-rss-feed\/","title":{"rendered":"Using The Events Calendar RSS Feed"},"content":{"rendered":"\n<p>The Events Calendar includes a built-in RSS feed that delivers upcoming events to subscribers in any compatible feed reader. This article covers everything about the events RSS feed: where to find it, how it differs from WordPress\u2019s default post feed, how visitors can subscribe, and how to customize it with code.<\/p>\n\n\n\n<p>You can access your calendar\u2019s RSS feed by adding <strong>\/feed<\/strong> to the end of your main calendar page URL. For example, if your calendar is at <code>https:\/\/yoursite.com\/events\/<\/code>, the feed is at <code>https:\/\/yoursite.com\/events\/feed<\/code>.<\/p>\n\n\n\n<p>Clicking the feed URL directly may display a mass of unformatted XML code \u2014 that\u2019s normal. RSS feeds are not designed to be human-readable in a browser. They\u2019re parsed by a compatible RSS reader application, which presents the content with proper formatting.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2015\/03\/wp_shindig_rss_feed_in_reader-665x280.png\" alt=\"Example of an events RSS feed as seen in a feed reader application\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-events-are-ordered\">How Events Are Ordered<\/h3>\n\n\n\n<p>The Events Calendar\u2019s RSS feed shows the next 10 upcoming events starting from the current day, ordered by event <strong>start date<\/strong>. This is different from a standard WordPress post feed, which orders content by <strong>publication date<\/strong>.<\/p>\n\n\n\n<p>The reason for this difference is that we typically think of an event\u2019s start date when we think about when an event is happening. To illustrate:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Event A:<\/strong> Published January 1 \u2014 starts January 10<\/li>\n\n\n\n<li><strong>Event B:<\/strong> Published January 2 \u2014 starts January 9<\/li>\n<\/ul>\n\n\n\n<p>In the default WordPress RSS feed, Event B would appear first because it was published later. In the Events Calendar RSS feed, Event A appears first because it starts later. The calendar ordering is almost always what you want for events.<\/p>\n\n\n\n<p>Keep this distinction in mind if you decide to combine events and posts into a single feed \u2014 merged events will be ordered by publication date, not start date. See the <a href=\"#customizing\">Customizing the Feed<\/a> section below for the relevant snippet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-subscribing-to-your-events-feed\">Subscribing to Your Events Feed<\/h2>\n\n\n\n<p>Any RSS reader application can subscribe to your events feed. If you\u2019re just getting started, <a href=\"https:\/\/feedly.com\/i\/welcome\">Feedly<\/a> is a free, straightforward web-based option. Many other RSS readers exist in web-based, desktop, and mobile formats.<\/p>\n\n\n\n<p>To subscribe in Feedly: click <strong>Add Content<\/strong>, select <strong>Publications &amp; Blogs<\/strong>, and enter your feed URL (ending in <strong>\/feed<\/strong>). After a moment the results pane updates with your calendar feed title. Click <strong>Follow<\/strong>, select a category, and you\u2019re done. When new events are added to the site, they\u2019ll appear immediately in your feed, with a link to click through to the original event post.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/images.theeventscalendar.com\/kb\/uploads\/2017\/08\/feedly_add_content_shindig-665x249.png\" alt=\"Adding an events RSS feed as a new subscription in the Feedly app\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-adding-a-subscribe-link-or-button-to-your-site\">Adding a Subscribe Link or Button to Your Site<\/h3>\n\n\n\n<p>To make it easy for visitors to subscribe, add a direct link to your feed URL in an accessible location near your main calendar view. Users with a compatible RSS application who click the link will have the feed automatically opened in their reader with the option to subscribe.<\/p>\n\n\n\n<p>For a Feedly-specific button, use <a href=\"https:\/\/www.feedly.com\/factory.html\">Feedly\u2019s button generator<\/a>: select a button style, enter your feed URL, and copy the generated code. You can add it to a theme template, a Custom HTML widget, or anywhere else on your site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-category-and-tag-feeds\">Category and Tag Feeds<\/h3>\n\n\n\n<p>Just as The Events Calendar supports category-specific calendar views, you can generate RSS feeds for specific event categories and tags. Simply append <strong>\/feed<\/strong> to the end of any category or tag archive URL.<\/p>\n\n\n\n<p>For example, if a \u201cFitness\u201d category is at <code>https:\/\/yoursite.com\/events\/category\/fitness\/<\/code>, the category feed is at <code>https:\/\/yoursite.com\/events\/category\/fitness\/feed<\/code>.<\/p>\n\n\n\n<p>This is especially useful for community calendars with a wide variety of event types \u2014 visitors can subscribe only to the categories they care about.<\/p>\n\n\n\n<p><strong>Note on tag feeds:<\/strong> Unlike event categories, tags are shared between events and standard WordPress posts. If other post types use the same tags, those posts will appear on the tag feed alongside your events.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-email-subscriptions\">Email Subscriptions<\/h3>\n\n\n\n<p>For visitors who prefer email notifications over a feed reader, several third-party services convert RSS feeds to email digests:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/blogtrottr.com\">Blogtrottr<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.feed2mail.com\">Feed2Mail<\/a><\/li>\n<\/ul>\n\n\n\n<p>If you use <a href=\"https:\/\/mailchimp.com\">Mailchimp<\/a> for email promotions, its <a href=\"https:\/\/mailchimp.com\/features\/rss-to-email\/\">RSS-to-email feature<\/a> can push your calendar feed directly to subscribers automatically. Connect your RSS feed to a new RSS-driven campaign and new event posts will be converted into a newsletter-friendly format and sent on your chosen schedule.<\/p>\n\n\n\n<p>Events are a custom post type and will not be included in your site\u2019s main WordPress RSS feed by default. The snippets below cover the most common customizations. Add them to your (child) theme\u2019s <code>functions.php<\/code> file, or wherever you usually put custom code.<\/p>\n\n\n\n<p><strong>Note:<\/strong> If changes don\u2019t seem to take effect after adding a snippet, try flushing your permalinks by clicking Save under <strong>Settings \u2192 Permalinks<\/strong>. Also be aware that your site has more than one type of RSS feed \u2014 see the <a href=\"https:\/\/codex.wordpress.org\/WordPress_Feeds\">WordPress Codex on feeds<\/a> for an overview.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-customizing-the-rss-feed\">Customizing the RSS Feed<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-events-to-the-main-wordpress-rss-feed\">Add Events to the Main WordPress RSS Feed<\/h3>\n\n\n\n<p>This snippet merges events into your site\u2019s main post RSS feed. After adding it, events will appear in <code>https:\/\/yoursite.com\/feed<\/code> alongside regular posts, ordered by publication date.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;?php\n\/\/ Add Events to RSS Feed\nfunction add_events_to_rss_feed( $args ) {\n    if ( isset( $args&#x5B;&#039;feed&#039;] ) &amp;amp;&amp;amp; !isset( $args&#x5B;&#039;post_type&#039;] ) ) {\n        $args&#x5B;&#039;post_type&#039;] = array( &#039;post&#039;, &#039;tribe_events&#039; );\n    }\n    return $args;\n}\n\nadd_filter( &#039;request&#039;, &#039;add_events_to_rss_feed&#039; );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-event-start-and-end-dates-to-the-feed\">Add Event Start and End Dates to the Feed<\/h3>\n\n\n\n<p>By default, the RSS feed does not include event start and end dates as dedicated fields. This snippet taps into WordPress feed hooks to add them.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\ud83d\udca1 RSS feeds do not offer native support for event-specific fields like start and end times, and likely never will. The fields added below are based on a <a href=\"http:\/\/web.resource.org\/rss\/1.0\/modules\/event\/\">draft RSS event spec<\/a> that was last updated in 2002. The draft appears abandoned, and even the purl.org namespace now 404s. Given the age of RSS and that it is widely being replaced by newer formats, it is likely that no official event namespace will ever come to RSS. These fields have limited utility and will not be viewable or useful in many RSS readers.<\/p>\n<\/blockquote>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;?php\n\/\/ Add Tribe Event Namespace\nadd_action( &#039;rss2_ns&#039;, &#039;events_rss2_namespace&#039; );\n\nfunction events_rss2_namespace() {\n    echo &#039;xmlns:ev=&quot;http:\/\/purl.org\/rss\/2.0\/modules\/event\/&quot;&#039;.&quot;\\n&quot;;\n}\n\n\/\/ Add Event Dates to RSS Feed\nadd_action( &#039;rss_item&#039;, &#039;tribe_rss_feed_add_eventdate&#039; );\nadd_action( &#039;rss2_item&#039;, &#039;tribe_rss_feed_add_eventdate&#039; );\nadd_action( &#039;commentsrss2_item&#039;, &#039;tribe_rss_feed_add_eventdate&#039; );\n\nfunction tribe_rss_feed_add_eventdate() {\n    if ( ! tribe_is_event() ) {\n        return;\n    }\n    ?&gt;\n    &amp;lt;ev:tribe_event_meta xmlns:ev=&quot;Event&quot;&gt;\n    &amp;lt;?php if ( tribe_get_start_date() !== tribe_get_end_date() ) { ?&gt;\n\n        &amp;lt;ev:startdate&gt;&amp;lt;?php echo tribe_get_start_date(); ?&gt;&amp;lt;\/ev:startdate&gt;\n        &amp;lt;ev:enddate&gt;&amp;lt;?php echo tribe_get_end_date(); ?&gt;&amp;lt;\/ev:enddate&gt;\n\n    &amp;lt;?php } else { ?&gt;\n\n        &amp;lt;ev:startdate&gt;&amp;lt;?php echo tribe_get_start_date(); ?&gt;&amp;lt;\/ev:startdate&gt;\n\n    &amp;lt;?php } ?&gt;\n    &amp;lt;\/ev:tribe_event_meta&gt;\n\n&amp;lt;?php }\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-order-events-by-publication-date-in-the-feed\">Order Events by Publication Date in the Feed<\/h3>\n\n\n\n<p>By default, TEC orders events in the RSS feed by start date. If you want events to appear in publication date order instead \u2014 for example, after merging events into the main post feed \u2014 this snippet removes TEC\u2019s ordering filter when the current query is a feed:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nadd_action( &#039;pre_get_posts&#039;, &#039;custom_teardown_tribe_order_filter&#039;, 60 );\n\nfunction custom_teardown_tribe_order_filter() {\n    if ( is_feed() ) {\n        remove_filter( &#039;posts_orderby&#039;, array( &#039;Tribe__Events__Query&#039;, &#039;posts_orderby&#039; ), 10, 2 );\n    }\n}\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-the-publication-date-as-the-rss-pubdate\">Use the Publication Date as the RSS pubDate<\/h3>\n\n\n\n<p>By default, TEC sets the <code>&lt;pubDate&gt;<\/code> value in the RSS feed to the event\u2019s <strong>start date<\/strong>, so events appear in feed readers at the time they occur rather than when they were published. If you need the <code>&lt;pubDate&gt;<\/code> to reflect when the event was actually published on your site instead, add this single line:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nremove_filter( &#039;get_post_time&#039;, array( &#039;Tribe__Events__Templates&#039;, &#039;event_date_to_pubDate&#039;, 10 ) );\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-adjust-the-number-of-events-in-the-feed\">Adjust the Number of Events in the Feed<\/h3>\n\n\n\n<p>By default, WordPress uses the value set under <strong>Settings \u2192 Reading \u2192 Syndication feeds show the most recent<\/strong> to control the number of items in any RSS feed. The following snippet overrides that setting specifically for the events feed. Replace <code>10<\/code> with your desired count:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nadd_filter( &#039;pre_option_posts_per_rss&#039;, &#039;tribe_events_feed_count&#039; );\n\nfunction tribe_events_feed_count( $count ) {\n    if ( tribe_is_event() || tribe_is_event_query() ) {\n        return 10; \/\/ Change this number to your desired feed count\n    }\n    return $count;\n}\n<\/pre><\/div>\n\n\n<p>For more ways to customize WordPress RSS feeds, see <a href=\"http:\/\/digwp.com\/2012\/10\/customizing-wordpress-feeds\/\">this Digging Into WordPress article on feed customization<\/a>, or browse the <a href=\"https:\/\/codex.wordpress.org\/WordPress_Feeds\">WordPress Codex on feeds<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Events Calendar includes a built-in RSS feed that delivers upcoming events to subscribers in any compatible feed reader. This article covers everything about the events RSS feed: where to find it, how it differs from WordPress\u2019s default post feed, how visitors can subscribe, and how to customize it with code. You can access your&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[130],"tags":[36],"stellar-product-taxonomy":[161],"class_list":["post-1896540","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced-post-manager","tag-exporting","stellar-product-taxonomy-the-events-calendar"],"acf":[],"taxonomy_info":{"category":[{"value":130,"label":"Managing Events"}],"post_tag":[{"value":36,"label":"Exporting"}],"stellar-product-taxonomy":[{"value":161,"label":"The Events Calendar"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Jaime Marchwinski","author_link":"https:\/\/theeventscalendar.com\/knowledgebase\/author\/jaimetri-be\/"},"comment_info":0,"category_info":[{"term_id":130,"name":"Managing Events","slug":"advanced-post-manager","term_group":0,"term_taxonomy_id":130,"taxonomy":"category","description":"","parent":61,"count":19,"filter":"raw","term_order":"0","cat_ID":130,"category_count":19,"category_description":"","cat_name":"Managing Events","category_nicename":"advanced-post-manager","category_parent":61}],"tag_info":[{"term_id":36,"name":"Exporting","slug":"exporting","term_group":0,"term_taxonomy_id":36,"taxonomy":"post_tag","description":"","parent":0,"count":8,"filter":"raw","term_order":"0"}],"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896540"}],"version-history":[{"count":10,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896540\/revisions"}],"predecessor-version":[{"id":1969932,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896540\/revisions\/1969932"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1896540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896540"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}