top of page
Filter events by category

Filter events by category

Create a filter to filter events by assigned categories.

Intermediate.png

Intermediate

2K

Published:

January 16, 2024

Girl Enjoying her Drink

by

Anchor 1
Hire a Developer

Example Description

In this example, users can create a filter to filter events by categories in the Wix Events element.

Example Code

Tab 1

.

Tab 2

.

Tab 3

.

This code solution can be complicated.

How We Built It

Database Collection:

In this example, we use the “Events/Categories” database collection. When installing Wix Events & Tickets on your site, this collection is automatically added.


Page Elements:

We added the following elements to our site:

Wix Events element: Displays the event list.

Dropdown: Used as a filter, where the site visitor selects the category.


Code Workflow:

We added the following code to our site:

  1. Fetch all categories from the collection and map them into the array.

  2. Assign the array to the dropdown.

  3. Add an event handler in the dropdown that sets the Wix Events element to display only events with the selected category.


APIs We Used

Non-code example.

Non-code example.

Related Articles

Article Link

Hire a Developer

Velo solutions are powerful tools, but building them on your own can be challenging. Let an experienced Velo development shop build it for you, so you can keep working on your site or business.

Related Examples

Did this help?

Yes

|

No

Thanks for your feedback!

Custom Event Ticket Purchase Flow

Custom Event Ticket Purchase Flow

Create a custom ticket purchase flow without using the Wix Events widget

Intermediate.png

Intermediate

Custom Event Ticket Picker on Events Frontend

Custom Event Ticket Picker on Events Frontend

Create a custom ticket picker for your events.

Intermediate.png

Intermediate

Anchor 2
bottom of page