Support

Home Forums Event Espresso Premium Table view addon prefiltered by category or event

Table view addon prefiltered by category or event

Posted: December 5, 2014 at 5:14 am

Viewing 6 reply threads


SolidQ

December 5, 2014 at 5:14 am

Hi, I am trying to build a page that displays a table view, but rather than showing all events, I’d like to either display only the events corresponding to a particular Category. This would be a good enough solution. But…

The best solution would be if the table only displayed a table view for a particular event. let’s say Event X (which in our case is a course) will be taking place in London on the 10th of December, in Washington DC on the 11th of January, in Vienna on the 3rd of February. How can we display all those different dates for different classes of the same course in a single table?

Thanks


Tony

  • Support Staff

December 5, 2014 at 5:27 am

Hi,

All of the available shortcode attributes for the Table View Template can be found here:

https://eventespresso.com/wiki/ee4-events-table-view-template/

Notice in the shortcode attributes it lists:

category_slug = NULL (pull events from a certain category, using the category slug)

So you can set that within the shortcode like this:

[ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug = “some-category”]

Which would display event events that have been set to ‘some category’.

To find the category slugs go to Event Espresso -> Events. Categories (tab).

You’ll find a like of categories with shortcodes you can use, each of those categories will have the category_slug set.

Is that what you are looking for?


SolidQ

December 5, 2014 at 5:56 am

Thanks Tony,
This is the good enough option. NOw this table offers a Category filter selection. How can I make this particular table to enable a Filter by venue tab?


SolidQ

December 5, 2014 at 6:27 am

By the way, and how about the best solution I was asking for? That is, of the two options I was calling out for in my initial post, how can I achieve the second option, which is really what I need?

Thanks


Tony

  • Support Staff

December 5, 2014 at 7:11 am

To filter by venue in the same way the filter by category works would require some custom development and your own custom template.

By the way, and how about the best solution I was asking for? That is, of the two options I was calling out for in my initial post, how can I achieve the second option, which is really what I need?

Are they set as separate individual events or a single event with multiple datetimes?


SolidQ

December 5, 2014 at 9:07 am

Hi Tony, they are separate Events indeed. On that summary list we’d need to see the Event title, the date and the venue, all these three elements on a single line per event. I saw the upcoming events widgets but it brings up many more data than we would require for this view. Any thoughts?


Josh

  • Support Staff

December 5, 2014 at 1:51 pm

Hi SolidQ Global S.L.,

If they’re individual events, how is one event several events? If they are entered into the system as several unique events you can assign them to one category then, use the category parameter for the table view shortcode.

If it’s entered as one event with multiple datetimes all within the one event, you could instead build out your own custom template. One core template tag function that would work well for this would be:

<?php espresso_list_of_event_dates( $post->ID );?>

Viewing 6 reply threads

The support post ‘Table view addon prefiltered by category or event’ 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