Home › Forums › Calendar Products › Events Calendar PRO › How to have multiple cities and categories?
- This topic has 4 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
January 30, 2016 at 9:01 am #1065051
Pete
ParticipantHi, I would like to create an events calendar for multiple cities.
I posted this question on WordPress: https://wordpress.org/support/topic/is-this-plugin-a-good-option-for-what-i-want-to-do?replies=3
I want to have:
City1
– Sports
– Film
– ConcertCity2
– Sports
– Film
– ConcertCity3
– Sports
– Film
– ConcertA user will be able to view all events for City1 and then select to view “Sports” in City1, but they can also select to view all “Sports” in City1, City2 and City3.
They will also be able to view all events for all cities and categories.
Could you explain in more detail how this would be possible to structure this?
February 1, 2016 at 7:15 am #1065732George
ParticipantHey Pete,
Thanks for reaching out.
If you only want to use existing calendar features, then the most straightforward way of implementing something like this would be to just use Event Categories.
You’d basically one Event Category for each city, and then one Event Category for each activity/event-type.
Then you could offer filters for events that are in various combinations of categories.
So, for example, “Sports” events in City1 and City2 would be events that have the “Sports” category and then also a category of City1 and City2, but not if it has a category of city3 or no city-related category at all.
You could quite clever with this.
Now, how would you actually build interfaces in your theme so users could select such categories easily?
If you check out our demo site at http://wpshindig.com/events/, you’ll see that the “Event Category” filter there allows for multi-category filtering like this.
This requires The Events Calendar and the premium add-on The Events Calendar: Filter Bar.
If you need any other type of UI for these filters, then unfortunately none of our plugins provide that UI and so you would have to custom-build the filters for your site. This is especially true if you do not want “cities” to be categories, but you want some sort of auto-filtering/matching based on the Venue location of the event and such.
I hope this information helps! Let me know.
Cheers,
GeorgeFebruary 1, 2016 at 4:53 pm #1066022Pete
ParticipantOk, I think I can get that to work how I was hoping.
Can you use the filter as hard URLS that load after clicking a link, and not just ajax?
Also, what do the filter bar urls look like?
I selected 2 event categories on the demo and the was: http://wpshindig.com/events/list/tribe_paged=1&tribe_event_display=list&tribe_eventcategory%5B%5D=53&tribe_eventcategory%5B%5D=46
Will it say “tribe_event” and “tribe_paged” or can I have the “tribe” be the name of my site so it looks custom?
February 1, 2016 at 9:55 pm #1066110George
ParticipantHey @Pete,
Unfortunately, the filter URLs do not work without the AJAX functionality 🙁
As for what the URLs look like, they will look like the URL you gave as an example, with “tribe_event” and “tribe_paged” and such.
You can technically change these tribe_ terms to something else, but this would be a massive, complicated code rewrite. There is no easy way to change this.
Sorry to bear some of this bad news here, @Pete! Please let me know what you think.
Sincerely,
GeorgeFebruary 22, 2016 at 8:35 am #1079835Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to have multiple cities and categories?’ is closed to new replies.
