Hi there, Nicole!
That snippet does do something–however, I don’t think it does what you’re looking for.
The snippet displays the categories for each even when in the calendar’s List View (screenshot).
It sounds like you are looking for a way to allow visitors to filter the calendar by selecting from a menu of available categories–is that correct?
If so, it does take a fair amount of custom development to make that happen. Alternatively, you can check out our Filter Bar add-on which does that right out of the box.
Does this help answer your question? Please let me know. 🙂
Cheers!
Geoff