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 10001 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
  • Research has shown that the process of creating art can have many beneficial effects on our well-being. Artmaking can increase our sense of presence, flow, and creativity,…
  • Growing Up in Science (GUIS) is a new-to-Stanford discussion series. In each session, one faculty member will share the personal side of their individual journey through…
  • Evening Guided Meditation is designed to offer basic meditation skills, to encourage regular meditation practice, to help deepen self-reflection, and to offer instructions on…
  • Co-sponsored with the Black Staff Alliance The BSA and the Faculty Staff Help Center extend the theme of wellness throughout the year with the offering of monthly, mental…
  • Are your conversational networking skills feeling a little rusty? Want to practice talking with people you don’t know so you feel more confident in any networking…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • Becoming a parent can be joyful and transformative. It can also be incredibly challenging and isolating. Navigating all the uncertainty, triumphs and disappointments can be…
  • Yin and Restorative Yoga Class with Heather Freeman (bio). This class explores gentle movement, breath, and mindfulness to support sleep, healthful rest, and enhanced…
  • All levels are welcome from beginner to experienced. Open to Stanford affiliates – no pre-registration required. Join Rocky Blumhagen, returning fellow, Stanford DCI 2019 as…
  • Every day the news and social media are buzzing with complex and often conflicting messages about nutrition. How can you sort out the key elements of healthy eating among all…

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
  • Research has shown that the process of creating art can have many beneficial effects on our well-being. Artmaking can increase our sense of presence, flow, and creativity,…
  • Growing Up in Science (GUIS) is a new-to-Stanford discussion series. In each session, one faculty member will share the personal side of their individual journey through…
  • Evening Guided Meditation is designed to offer basic meditation skills, to encourage regular meditation practice, to help deepen self-reflection, and to offer instructions on…
  • Co-sponsored with the Black Staff Alliance The BSA and the Faculty Staff Help Center extend the theme of wellness throughout the year with the offering of monthly, mental…
  • Are your conversational networking skills feeling a little rusty? Want to practice talking with people you don’t know so you feel more confident in any networking…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • Becoming a parent can be joyful and transformative. It can also be incredibly challenging and isolating. Navigating all the uncertainty, triumphs and disappointments can be…
  • Yin and Restorative Yoga Class with Heather Freeman (bio). This class explores gentle movement, breath, and mindfulness to support sleep, healthful rest, and enhanced…
  • All levels are welcome from beginner to experienced. Open to Stanford affiliates – no pre-registration required. Join Rocky Blumhagen, returning fellow, Stanford DCI 2019 as…
  • Every day the news and social media are buzzing with complex and often conflicting messages about nutrition. How can you sort out the key elements of healthy eating among all…

And trying again, sorting desc:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=desc
  • Research has shown that the process of creating art can have many beneficial effects on our well-being. Artmaking can increase our sense of presence, flow, and creativity,…
  • Growing Up in Science (GUIS) is a new-to-Stanford discussion series. In each session, one faculty member will share the personal side of their individual journey through…
  • Evening Guided Meditation is designed to offer basic meditation skills, to encourage regular meditation practice, to help deepen self-reflection, and to offer instructions on…
  • Co-sponsored with the Black Staff Alliance The BSA and the Faculty Staff Help Center extend the theme of wellness throughout the year with the offering of monthly, mental…
  • Are your conversational networking skills feeling a little rusty? Want to practice talking with people you don’t know so you feel more confident in any networking…
  • Student-Led Yoga is intended as a means of making the mental and physical benefits of asanas readily available to all, regardless of where you are on your yogi journey. Expect…
  • Becoming a parent can be joyful and transformative. It can also be incredibly challenging and isolating. Navigating all the uncertainty, triumphs and disappointments can be…
  • Yin and Restorative Yoga Class with Heather Freeman (bio). This class explores gentle movement, breath, and mindfulness to support sleep, healthful rest, and enhanced…
  • All levels are welcome from beginner to experienced. Open to Stanford affiliates – no pre-registration required. Join Rocky Blumhagen, returning fellow, Stanford DCI 2019 as…
  • Every day the news and social media are buzzing with complex and often conflicting messages about nutrition. How can you sort out the key elements of healthy eating among all…