Support

Home Forums Event Espresso Premium EE4 display events for an individual venue

EE4 display events for an individual venue

Posted: February 23, 2016 at 6:25 am


Andrew Appleton

February 23, 2016 at 6:25 am

I seem to recall that in EE3 I could display a list of events for a specific venue.

Is this possible in EE4 either by filtering the Calendar or Event List?


Josh

  • Support Staff

February 23, 2016 at 9:52 am

Hi Andrew,

The Calendar shortcode has an event_venue_id parameter where you can pass the post ID of the Venue and the calendar will display events for the venue. You can set up the calendar shortcode like this:

[ESPRESSO_CALENDAR event_venue_id=506]

where 506 is the post ID of the venue.

Another way you can display a list of upcoming events for a venue is add an event list to the single venue page. There isn’t a shortcode for this where you’d add it to the venue page, but instead there are some hooks that let you set up some code and the list of events will automatically appear on each event page. Here’s a link to that code snippet:

https://eventespresso.com/wiki/useful-php-code-snippets/#venue-event-list

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


Andrew Appleton

February 23, 2016 at 11:00 am

Thanks Josh, will give it a go.


Josh

  • Support Staff

February 23, 2016 at 12:00 pm

You’re welcome.


Andrew Appleton

February 23, 2016 at 3:34 pm

Works great with a functions plugin. Is there anyway to show the date as well as the title of the event?


Josh

  • Support Staff

February 24, 2016 at 11:46 am

You can add the date to the display by adding some additional code like this:

$event_id = $event->get( 'EVT_ID' );
echo espresso_event_date('', ' ', $event_id, false );

The support post ‘EE4 display events for an individual venue’ 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