Skip to main content

Test Feed

This is what I get when I choose the next 7 days and health/wellness for my feed, while not hiding recurring events. Feed URL is:

https://events.stanford.edu/calendar.xml?event_types%5B%5D=37093217343447&experience=

Same settings below, with recurring events hidden. Feed URL is:

https://events.stanford.edu/calendar.xml?card_size=small&event_types%5B%5D=37093217343447&experience=&hide_recurring=1

Here I’ve chosen just today, health/wellness, recurring events not hidden. URL is:

https://events.stanford.edu/calendar/day?card_size=small&order=date&days=1&experience=&event_types%5B%5D=37093217343447

And this is today, health/wellness, recurring events hidden.

https://events.stanford.edu/calendar.xml?card_size=small&days=1&event_types%5B%5D=37093217343447&experience=&hide_recurring=1

I used the search tool to find health/wellness, filtered those results to the next seven days, and built this feed. Note that the URL includes start-date=2021-12-09 which is certainly not what I want. This example is with recurring events turned on:

https://events.stanford.edu/search/events.xml?days=7&event_types%5B%5D=37093217343447&experience=&start_date=2021-12-09
RSS Error: WP HTTP Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Here I’m hiding recurring events. I chose the next seven days, which the URL shows, but it still includes today’s date. Why am I seeing events four to six months from now?

https://events.stanford.edu/search/events.xml?days=7&event_types%5B%5D=37093217343447&experience=&hide_recurring=1&start_date=2021-12-09
RSS Error: WP HTTP Error: cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received

After hearing back from Localist

So apparently, we use the Widget Builder for this, Preview the widget, copy the resulting URL, and change format=html to format=rss:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&all_instances=1&format=rss&template=modern

Here I’ve built the same feed, but turned off Include All Matching Instances but they’re in the wrong order:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&template=modern

So here’s an attempt to figure out the write parameter to add to the query string so it sorts chronologically:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=asc

And trying again, sorting desc:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=desc