I have an entry assigned to a specific category. I want events from exp:calendar:cal that share the same category to be displayed on the same page. When I hard code the category ID it works like a charm, but I want to know how I can pass the category ID dynamically. I've tried embeds, snippets and Stash embeds and I can't get anything to work.
Here's the calendar code...
<ul>
{exp:calendar:cal channel="calendar_events" date_range_start="today" date_range_end="12 months" event_limit="4" enable="categories|custom_fields" related_categories_mode="yes" custom_fields="yes" category="[SNIPPET? EMBED? STASH?]"}
<li>{event_start_date format="%M %j"}<a href="{path='calendar/event'}/{if event_recurs}{event_start_date format="%Y/%m/%d"}/{/if}{event_id}" title="{title}">{title}</a></li>{/exp:calendar:cal}
</ul>
And here's what I'm using to grab the category ID of the current page...
{exp:channel:entries channel="cool_stuff" disable="{gv_disable}"}
{categories}{category_id}{/categories}
{/exp:channel:entries}
Thanks in advance to anyone who can help at all!