<p>Figured it out. For anyone else seeing this later on:</p>

<pre><code>{% set regionCategory = craft.categories.group('eventRegions').slug(region).one() %}

{% set month = craft.calendar.month({ relatedTo: regionCategory }) %}
</code></pre>

CC BY-SA 4.0
2019-03-31T22:48:33.563Z
2019-03-31T22:48:33.563Z
A Herrera
<p>I've set up a category field for events. Multiple categories can be chosen. And I've set up a form to "filter" events to a specific category using query parameters.</p>

<p>The URL looks something like this (simplified; region is the category):</p>

<pre><code>domain.com/events/month?&amp;region=portland
</code></pre>

<p>Is there a way to show events that pertain to the category param in the month view?</p>

<p>Been banging my head and can't figure it out.</p>

<craft3><plugin-solspacecalendar><calendar>
Show events in month by specific category - Solspace Calendar
# Show events in month by specific category - Solspace Calendar

(Asked by: username_0 on 2019-03-31)

I've set up a category field for events. Multiple categories can be chosen. And I've set up a form to "filter" events to a specific category using query parameters.
The URL looks something like this (simplified; region is the category):
domain.com/events/month?&region=portland

Is there a way to show events that pertain to the category param in the month view?
Been banging my head and can't figure it out.

**Tags:** craft3, plugin-solspacecalendar, calendar


---

## 1 answers

### Answer by username_0 on 2019-03-31. Score: 1

Figured it out. For anyone else seeing this later on:
{% set regionCategory = craft.categories.group('eventRegions').slug(region).one() %}

{% set month = craft.calendar.month({ relatedTo: regionCategory }) %}


---

