Support

Home Forums Event Espresso Premium Sort by multiple categories

Sort by multiple categories

Posted: November 9, 2023 at 12:13 pm


greyowl

November 9, 2023 at 12:13 pm

We have a language course programme, with many different selection options. We use the Events Table View Template add-on, which allows a sorted list with selection by category. But we have too many categories. Is there a way to split this into more than one drop-down selection list? Or make several pages, each with a subset of the courses?


Tony

  • Support Staff

November 10, 2023 at 6:56 am

Hi there,

Adding multiple dropdowns on the page isn’t something we have available currently, however for this:

Or make several pages, each with a subset of the courses?

Would it work to load a specific category on the page?

You can do that using a parameter on the shortcode:

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

Is that what you are looking for?


greyowl

November 11, 2023 at 7:21 am

Thanks, I’m exploring that approach. Seems doable. How do I switch off the Category filter?


Rio

  • Support Staff

November 12, 2023 at 6:54 pm

you can do CSS on that. Just use the selector available, be sure you select the correct element and not all will be affected such as this.
https://monosnap.com/file/g1wyeGENIibP89XthGEJLdMuozIvRa

.post-102 p.category-filter {
    display: none; 
}

this code wont work on your end, you must change .post-102 to the element you have in your site.

if you’re not sure, you can send the URL here and let me look that for you.

thanks


greyowl

November 14, 2023 at 1:13 am

Hi Rio. Thanks for your reply. My plan has changed a bit. What I now want is to suppress the display of some categories in the drop-down list. Specifically “fide-test” on page https://www.lernen-im-quartier.ch/
I added the following to my Additional CSS, but that doesn’t seem to work.

.fide-test p.category-filter {
display: none;
}


Tony

  • Support Staff

November 14, 2023 at 4:46 am

I’m not sure if I follow he use case for this but the above CSS should be:

#ee_filter_cat .fide-test {
    display: none;
}

The selector format for the above is:

#ee_filter_cat .{category_slug} {


Rio

  • Support Staff

November 14, 2023 at 4:53 am

If you want to remove the dropdown, you can do this.

.fl-rich-text p.category-filter {
    display: none;
}

You can also check the documentation here with regarding to table shortcode.
https://eventespresso.com/wiki/events-table-view-template-add-on/

thanks


greyowl

November 15, 2023 at 6:40 am

Thanks. The CSS code now works.


Rio

  • Support Staff

November 15, 2023 at 5:43 pm

Awesomes! if you need anything, feel free to let us know.

thanks

The support post ‘Sort by multiple categories’ 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