WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
RSS for Recurring Events (5 posts)

  1. handsonaswegrow
    Member
    Posted 1 year ago #

    I have set up recurring events to happen weekly. I'd like to be able to send out reminders for these events via an RSS feed to MailChimp (email).

    I can get the initial feed to send out correctly using: http://kidbloggernetwork.com/events/feed/

    Yay, great, but now that a week has gone by, the recurring events aren't coming.

    I have it set to "Group" the events, so only one occurrence appears at a time. But it still shows the date of the 'original' event instead of the current one.

    Is there a way to be able to ping the RSS feed with the new event each week?

    http://wordpress.org/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. handsonaswegrow
    Member
    Posted 1 year ago #

    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.

  4. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    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).

  5. handsonaswegrow
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic