Home › Forums › Calendar Products › Events Calendar PRO › iCal feed
- This topic has 5 replies, 2 voices, and was last updated 7 years, 9 months ago by
David Watson.
-
AuthorPosts
-
July 3, 2018 at 1:32 am #1566530
David Watson
ParticipantThe code in this article https://theeventscalendar.com/support/forums/topic/ical-feed-with-all-events/ to give a feed for all events is great and works for me.
Is there a way to narrow this feed down to all events for a single category?
(This is the post that contains the code: https://theeventscalendar.com/support/forums/topic/ical-feed-with-all-events/#post-1273474)
-
This topic was modified 7 years, 9 months ago by
David Watson.
July 3, 2018 at 4:47 am #1566592Jaime Marchwinski
KeymasterHi David,
Thanks for reaching out here!
You can create a single category view, so that all events from that category will be exported.
https://theeventscalendar.com/knowledgebase/event-categories/
Also, you can try to append the following to the URL to add the category, using the category slug:
?tribe_eventcategory=43Let me know if that helps!
Thanks,
Jaime
July 3, 2018 at 5:11 am #1566606David Watson
ParticipantHi,
Thanks for your reply – I’m not sure I’ve been very clear.
I have been able to export .ics files for different categories – see my page https://www.stmichaelsaldbourne.co.uk/diary/
I’m not trying to export events I’m setting up a feed so a user can subscribe to the upcoming events.
I have used the code referred to in the earlier article so a user can, for example using Outlook, add a calendar and subscribe to it using the url: https://www.stmichaelsaldbourne.co.uk/diary/list/?tribe_paged=0&tribe_event_display=list&ical=1&tribe_display=list
This creates an iCal feed (one way) so the user can subscribe to the calendar and receive updates. So far so good.
My issue is that this create a feed of ALL events, what I want to do is create other urls that only give feeds for certain categories so for example, if a parent has a child in Class 3 they would want to subscribe to a feed of with the category as Class 3 (category ID=10).
Is there a term I can add to the string to achieve this?
Thanks
July 3, 2018 at 6:35 am #1566678Jaime Marchwinski
KeymasterHi David,
I haven’t given this a thorough test, but perhaps you can append the information I provided above to your URL, so something like this:
Let me know if that works for you!
Thanks,
Jaime
July 4, 2018 at 1:18 am #1567391David Watson
ParticipantHi Jamie,
I tried that but it didn’t work however, I have managed to play around and find the answer;
My example that worked was;
https://www.stmichaelsaldbourne.co.uk/diary/category/year-2/list/?ical=1So that’s
{site-url}/{event-slug}/{category-slug}/list/?ical=1`
Works a charm!
Thanks for your help – hope other find this useful too.
July 5, 2018 at 5:11 am #1568094Jaime Marchwinski
KeymasterGlad to hear that you were able to figure things out, and thanks for sharing!
Since this issue has been resolved, I’m going to go ahead and close out this thread.
Have a great week!
-
This topic was modified 7 years, 9 months ago by
-
AuthorPosts
- The topic ‘iCal feed’ is closed to new replies.
