Filter events by category in main views
-
Hi,
I’m developing a website, using WordPress, for my son’s Cub-Scout Pack.
A big part of this is a shared calendar, with ics feeds.
Ok, first up, I only want calendar-style views, no lists. I have this on my main events page, but on some of the sub-pages (like Categories) I get lists show up.
Next, not all events are for all members. The pack is split into Dens. I have basically 4 types of events..
Public.
Pack-Wide
Committee
Den (one type for each den).Ok, so I have created categories for each of these, but I want to be able to show customized calendars. For example, a parent of a cub in Den 1 should only see Public, Pack and Den-1 events.
Currently, using groups, I can restrict access, but the events still show up in the main events calendar (it isn’t until you try to visit the event that you get a “denied” message).
I want the filters to actually be based on extended user categories, but I’m strugglg to see where / how to apply them. Which file contains the actual query to the database for the events that are shown in the calendar? When I look at calendar-full (which is the one that I think displays the canendar grid) I see it is provided with the events already in the variable $calendar. I guess I’m looking for the place where this is built?
Or am I going about it all wrong?
Thanks in advance for any help!
- The topic ‘Filter events by category in main views’ is closed to new replies.