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.
-
AuthorPosts
-
March 5, 2017 at 4:30 pm #1249705
Jacquie
ParticipantHi,
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,
JacquieMarch 7, 2017 at 12:36 am #1250314Brook
ParticipantHowdy 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
March 10, 2017 at 2:44 pm #1252666Jacquie
ParticipantHi 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.
March 10, 2017 at 8:57 pm #1252786Jacquie
ParticipantHi 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:
but it says that it is an invalid feed?
March 11, 2017 at 9:25 pm #1253003Brook
ParticipantHowdy 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
April 2, 2017 at 9:35 am #1263177Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘RSS Feed not showing only recently published events’ is closed to new replies.
