RSS Feed not showing only recently published events

Home Forums Calendar Products Events Calendar PRO RSS Feed not showing only recently published events

  • This topic has 6 replies, 4 voices, and was last updated 9 years ago by Jacquie.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1249705
    Jacquie
    Participant

    Hi,

    I have setup an RSS feed to email campaign in Mailchimp which I have done before for another site and it should only show the recently published posts. The feed for the events is not showing the recently published events – it is just taking the next 10 events that have a calendar date coming up next. How do I setup an rss feed to show only the recently published events?

    This is the feed I am using: https://www.coolconferences.com/events/feed/

    Kind Regards,
    Jacquie

    #1250314
    Brook
    Participant

    Howdy Jacquie,

    I would love to help you with this.

    If you paste the following snippet in your theme’s functions.php, I think it will add exactly the feature you are looking for:

    https://gist.github.com/elimn/681e2391f03dfadb8d94e1115bda19ab

    What the snippet does is add a few more types of RSS feeds to your site. Let’s say your site’s URL is:

    http://example.com/events/

    With this snippet in place you could view an RSS feed at this URL:

    http://example.com/events/?ical=1&tribe_display=recently-published&tribe_posts_amount=40

    You can even set how many recently published events you want to appear in the feed, using the number at the end of the URL there.

    Does that all make sense? Does that work for you?

    Cheers!

    – Brook

    #1252666
    Jacquie
    Participant

    Hi Brooke, thankyou! I will that a try and let you know. How do I know what other types of RSS feeds that code allows me to use? I’m really not that familiar with RSS feeds.

    #1252786
    Jacquie
    Participant

    Hi Brook,

    I added the code to my functions file and then I tried to update my Mailchimp campaign and entered in this rss feed which is the path you gave me:

    https://www.coolconferences.com/events/?ical=1&tribe_display=recently-published&tribe_posts_amount=10

    but it says that it is an invalid feed?

    #1253003
    Brook
    Participant

    Howdy Jacquie,

    I am so sorry, for a moment my brain was not working right. What I shared with you works for the iCal feed, not the RSS ones. And it does not look like Mailchimp supports iCal feeds (which are designed for events). Hence the error message you got.

    Since you are looking for RSS feeds we have a nice Knowledgebase article regarding modifying them, including some example code for modify the sorting order changing it from the event date to the publish date:

    https://theeventscalendar.com/knowledgebase/customize-rss-feed/#reorder

    Does that do what you need?

    Cheers!

    – Brook

    #1263177
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘RSS Feed not showing only recently published events’ is closed to new replies.