RSS feed should not show past events
-
Past events are showing in RSS feed, this makes no sense for us. The RSS feed has been working correctly until last week, we made no changes on our site so I figure out this must be some update in the plugin.
We have a snippet in functions.php that ignores past events when the query is for search and archive, and works fine. This snippet has also a condition for if query is for feed and events (both together), but it just gets ignored.
Actually, any coding made in add_action(‘pre_get_posts’) for feeds (is_feed()), works fine for general feed but gets ignored by the events calendar.
In example, this feed shows correctly only future events, because the feed is build by tag (archive):
https://www.tauli.cat/actualitat/temes/agenda-i3pt/feed/
*temes is the slug we use for tagBut, this other feed is build directly by the events calendar and shows past and future events:
https://www.tauli.cat/actualitat/agenda/feed/
*agenda is the slug we use for eventsThe page I need help with: [log in to see the link]
- The topic ‘RSS feed should not show past events’ is closed to new replies.