Posted: 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: Previous posts on the forum show the following tag: 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? |
Hi there,
Can you let me know where you found 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? |
|
|
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
|
Hi there, The documentation there is actually showing the different parameters you can use to order the event list by their venues. e.g. The code snippet that Tony shared with you can be extended to show more information about each event. |
|
|
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. |
You should be able to load the event templates into the custom loop. |
|
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.