I’m trying to make frontpage calendar to display only specific category events. Is it possible to make a filter so if table.php is on homepage, only events from specific category will be populated?
Ideally I will have a variable $myCity on hopmepage, $myCity can be Paris or NewYork. Events calendar will also have categories “Paris” and “NewYork”, I want to use this variable to control display of calendar on homepage. So if $myCity == Paris, only events from that category will be loaded.
Is this possible? Any ideas how I would modify query to attain this?
For wordpress wp_query this is very easy since loops can be limited to category. I’m only having problem with calendar, as I’m not sure how it is done internally and could not find any ideas looking at the code.