Support

Home Forums Event Espresso Premium EE4 – Events Table View Template Add-on Filter page

EE4 – Events Table View Template Add-on Filter page

Posted: January 18, 2016 at 3:11 pm


JacquesMivi

January 18, 2016 at 3:11 pm

Hello,

This topic concern : Events Table View Template Add-on
In each event I use cartegory “type of event” and category “City”.

On my page can I directly load a specific city (something like category_slug=city_selected). I wish to create one page for each city, with only events of this city.

Then on the page I can use this following code to remove city from my filter.

$taxonomy = array('espresso_event_categories');
$args = array('orderby'=>'name','hide_empty'=>true, 'exclude' => array('73'), 'exclude_tree' => array('71'),);
$ee_terms = get_terms($taxonomy, $args);

Thanks for your help,

$taxonomy = array(‘espresso_event_categories’);
$args = array(‘orderby’=>’name’,’hide_empty’=>true, ‘exclude’ => array(’73’), ‘exclude_tree’ => array(’71’),);
$ee_terms = get_terms($taxonomy, $args);

category_slug=”lyon”]


Tony

  • Support Staff

January 20, 2016 at 4:49 am

Hi there,

I’m sorry but I’m not sure I understand what you are asking.

To load a specific category using the Events Table View template you can use:

[ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=your-event-category-slug]

Set you category_slug and the table will only load events from that category.

If that what you are looking for?


JacquesMivi

January 20, 2016 at 1:38 pm

Yes perfect.
Thanks.

The support post ‘EE4 – Events Table View Template Add-on Filter page’ 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