Support

Home Forums Event Espresso Premium EE4 – List events by Venue

EE4 – List events by Venue

Posted: January 13, 2017 at 2:24 am

Viewing 5 reply threads


chris.garrison

January 13, 2017 at 2:24 am

Hi, finding it difficult to find up to date and accurate shortcode support to list events by venue.

From this page https://eventespresso.com/wiki/ee4-shortcodes-template-variables/, the suggestion is to use the following shortcode:
[ESPRESSO_EVENTS venue_name=venue_slug]

Previous posts on the forum show the following tag:
[ESPRESSO_VENUE_EVENTS id=1]

Neither seem to work, with the second one not registering as a shortcode at all and the first displaying all events.

Can you advise what the up-to-date method of doing this is, please?


Tony

  • Support Staff

January 13, 2017 at 7:04 am

Hi there,

[ESPRESSO_VENUE_EVENTS id=1] is a shortcode from EE3 and not available within EE4 (just explain why its not registered).

Can you let me know where you found [ESPRESSO_EVENTS venue_name=venue_slug]?

venue_name is not a valid parameter for the shortcode.

We don’t currently have a shortcode to display the events based on venue, however we have a snippet that lists the events assigned to a venue on the venues details page here available here:

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

The events will then be lists on the individual venue page which by default is /venues/{venue-name}/

Would that work?


chris.garrison

January 15, 2017 at 12:49 pm

Thanks, that code isn’t quite what we were looking for. More suitable would be to allow the loop to output the events like on an archive page. Can you advise how this could be achieved?

The parameter for venue_name is listed on the link provided at https://eventespresso.com/wiki/ee4-shortcodes-template-variables/#event-listings
Specifically, it states:

These parameters (options) are available for the shortcode above. Multiple parameters should be separated by a comma.

id
start_date
end_date
event_name
venue_title
city
state


Josh

  • Support Staff

January 16, 2017 at 10:49 am

Hi there,

The documentation there is actually showing the different parameters you can use to order the event list by their venues.

e.g.
[ESPRESSO_EVENTS order_by=venue_title]
will first show events from Venue A, then Venue B, then Venue C, and so on.

The code snippet that Tony shared with you can be extended to show more information about each event.


chris.garrison

January 16, 2017 at 12:30 pm

Thanks, I had hoped there would have been an easy way to use the current templates and replicate the loop; however I have pulled all the data out again and made it appear the same as the loop.


Josh

  • Support Staff

January 16, 2017 at 12:56 pm

You should be able to load the event templates into the custom loop.

Viewing 5 reply threads

The support post ‘EE4 – List events by 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