categoryId


categoryIdstring

Sets or gets the event category displayed in a Wix Events element.

Using the Display Events menu, you can set Wix Events elements to display a specific set of events or all the events in an event category.

By setting categoryId, you can dynamically change which event category to display. When you set categoryId to null or the page is reloaded, the element defaults to whatever is selected in the Display Events menu.

The value of categoryId corresponds to the ID field value for the event category's entry in the Wix Events "Categories" app collection. You can find this value either by opening the collection with the Content Management System (CMS), or querying the collection using the Wix Data API.

By default, the value of categoryId is the ID for the event category selected in the Display Events menu, or null if Select manually is selected in the menu.

Was this helpful?
Yes
No