Support

Home Forums Event Espresso Premium Venue filter in EE Events Table View Template

Venue filter in EE Events Table View Template

Posted: March 11, 2023 at 12:48 am

Viewing 5 reply threads


Mark

March 11, 2023 at 12:48 am

Hello,
I want to add a new venue filter in the Events Table View Template. There is a course filter but I also want to have a venue filter that has all the venues in it to filter out the events accordingly.
Is there any way to do it?
Thanks.


Tony

  • Support Staff

March 13, 2023 at 8:59 am

Hi Mark,

It is possible but you’ll need to modifying the template to add your own filter and also include your own JS to filter the rows.

You can copy \eea-events-table-template\templates\espresso-events-table-template.template.php into the root directory of your child theme and add your additional filter to the code there.

Then use wp_add_inline_script() to hook into the espresso_events_table_template JS file and add your own custom JS there. You can use the content \eea-events-table-template\scripts\espresso_events_table_template.js as a starter for your code and add that snippt to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Mark

March 21, 2023 at 12:51 am

Hi,
I have added the filter but I think it is not working well. Now the issue is if I set the limit to 30 in the shortcode and search for some specific category that has only one record in the first 30 events record the pagination still shows the 3 pagination links and I don’t know why. This is all happening when I don’t have my custom filter applied, and If I applied my custom venue filter applied to the template then it also causes filter out all the records in the first 30 records irrespective of the category selected in the category filter.

The shortcode I am using is [ESPRESSO_EVENTS_TABLE_TEMPLATE limit=30 table_search=false]
Screenshot 1
And here is the 2nd screenshot which is showing if I navigate to the 2nd or 3rd page then irrespective of the filter applied template shows all the records.
Remember I haven’t applied my custom filter in any search which screenshot has been shared with you.


Tony

  • Support Staff

March 22, 2023 at 7:46 am

if I set the limit to 30 in the shortcode and search for some specific category that has only one record in the first 30 events record the pagination still shows the 3 pagination links and I don’t know why.

That’s happening because the filters apply after the page has loaded, it basically hides/shows rows on the table after it has loaded.

Can you link me to the page so I can take a look?


Mark

March 24, 2023 at 9:09 pm

Screenshot

page Link


Mark

March 28, 2023 at 11:23 pm

Any update on this issue?

Viewing 5 reply threads

The support post ‘Venue filter in EE Events Table View Template’ 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