Support

Home Forums Events Calendar Add-on Event Calendar Venue Refinement

Event Calendar Venue Refinement

Posted: May 7, 2018 at 10:20 am


Elizabeth

May 7, 2018 at 10:20 am

I have applied the calendar to this page: https://aim.institute/calendar/ and I have used the Venue view shortcode:

Show events from a specific event venue on the calendar
[ESPRESSO_CALENDAR event_venue_id=your_venue_id]

and placed the venue ID number from Venues section under Management. But the Calendar is showing events for all Venues, not just ones marked for this specific Venue.


Josh

  • Support Staff

May 7, 2018 at 10:48 am

Hi there,

We’ve received your request for priority support. We’ll investigate this right now and follow up with an update.


Elizabeth

May 7, 2018 at 11:04 am

Also is it possible to show two different Venues on one calendar?


Josh

  • Support Staff

May 7, 2018 at 11:25 am

Hi again,

I found why the calendar wasn’t filtering venues. The reason was because the parameter within the shortcode contained errors. Here’s the correct syntax for displaying events from Venue 3036:

[ESPRESSO_CALENDAR event_venue_id=3036]

Also is it possible to show two different Venues on one calendar?

This isn’t possible out of the box, however if I remember correctly there’s a filter hook that makes this possible with some custom PHP programming. I can look into adding a filter function that will allow a comma-separated list of Venue IDs for specifying two or more venues on the calendar.


Elizabeth

May 7, 2018 at 11:30 am

Great, thanks Josh. Yes, if you can let me know about the comma-seperated list to allow multiple Venue ID’s that would be great. Really my goal is to show all of my Venues on once calendar, except for the “AIM Institute PTE” venue, it is the only private course offering.


Josh

  • Support Staff

May 7, 2018 at 11:43 am

It might be simpler and a more efficient query to just exclude the one venue instead.


Josh

  • Support Staff

May 7, 2018 at 12:43 pm

OK I added some code to your site’s “Site specific code for aim.institute” plugin that alters the calendar so it filters out events from the “AIM Institute PTE” venue.


Elizabeth

May 7, 2018 at 12:50 pm

Wow, thank you very much! This is perfect. If I need to add another venue to be excluded where is the code you added? Thanks again


Josh

  • Support Staff

May 7, 2018 at 1:00 pm

It’s in the “Site specific code for aim.institute” plugin. That’s located in your site’s wp-content/plugins/aim-institute/aim-institute-customizations.php file. The line of code that specifies the venue ID is:
'Event.Venue.VNU_ID' => array( 'NOT IN', array(3927) ),
so if you want to add another venue, for example ID 123, you’d change the above to:
'Event.Venue.VNU_ID' => array( 'NOT IN', array(3927, 123) ),

The support post ‘Event Calendar Venue Refinement’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso