Support

Home Forums Event Espresso Premium Event Table by Venue Only

Event Table by Venue Only

Posted: June 1, 2016 at 9:56 am

Viewing 3 reply threads


Karli

June 1, 2016 at 9:56 am

I want each of my venues to display only the events located at that specific venue in tabular view. I am using Event Espresso – Events Table View Template (EE 4.4.9+) and EE4 Everything License.

Tried inserting this code snippet https://eventespresso.com/wiki/useful-php-code-snippets/#venue-event-list in EE_Events_Table_Template.class.php

Ideas? Thanks in advance.


Karli

June 1, 2016 at 10:02 am

Oh, forgot to mention, I have a patch in place that uses categories to link the events to venues. Each venue page has its table filtered by category_slug=”venuename”. Would be great to have this be more automatic upon creating a venue and/or event with new venue.


Josh

  • Support Staff

June 1, 2016 at 11:26 am

Hi Karli,

I think you’re on the right track, but one change I can suggest is instead of copying code into the events table template plugin, you copy and adapt code from the events table template plugin into your custom code. The custom code you linked to is a good start that shows how to make a list of events. It can be adapted to display an html table, and some of the code from the events table template can be used there.

Here’s an example that illustrates this idea:

https://gist.github.com/joshfeck/9a7cd056a5ee4376efcd67d5bb95f5bd


Karli

June 1, 2016 at 1:52 pm

Thank you, Josh. I’ll give that a whirl.

Viewing 3 reply threads

The support post ‘Event Table by Venue Only’ 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