Grouping events will cause the earliest matching occurrence of the event to be used, and RSS feeds will just query all the events, so if you’re grouping it’ll just pick the first occurrence of each event.
One way would be, if its a feed to set ‘event_start_after’ to ‘now’:
(untested)
add_action( 'pre_get_posts', 'my_alter_event_feed_query', 7 );
function my_alter_event_feed_query( $query ){
if( $query->is_feed('rss2') && eventorganiser_is_event_query( $query ) ){
$query->set( 'event_start_after', 'now' );
}
}
Or optionally set group_events_by
to occurrence
instead.
I’m still not sure if this is going to work how I hope to.
Can you tell me if this is possible?
I’d like to use it as reminders of what’s going on THAT day. Sending out to email subscribers (via RSS) – posting events of what’s going on that day.
Maybe this isn’t the right plugin and I need a reminder plugin of some sort, just have never seen such a thing.
I need the recurring ability, as well as RSS.
Altering the above to:
$query->set( 'event_start_after', 'today' );
$query->set( 'event_start_before', 'today' );
Will restrict it to events that are starting that day. But I’m not sure RSS is the right tool for this, RSS is not typically that great for event feeds (at least you’ll want a custom RSS template, since the default template is intended for posts (with publishing date) as opposed to events (with event date).
I think this just might work, I’ll have to do a little testing over the weekend to make sure it behaves the way I think it should.
The reason for RSS is because I feed to to MailChimp for subscribers. I found MailChimp to be the easiest and most universal way to keep people updated.
The feed is formatted just fine for it too.