The Categories API lets you view and manage categories in the FAQ app. Categories group FAQ questions and are displayed on a site's Wix FAQ dashboard page. In a site's Wix FAQ widgets, categories appear as sections, helping visitors find the information they need.
With the Categories API, you can:
- Create, update, and delete categories to organize FAQ content.
- Retrieve category information and listings.
- Manage category ordering and display in Wix FAQ widgets.
- Query and filter categories based on various criteria.
Categories work together with the Question Entries API to create a complete FAQ management system. While categories provide the organizational structure, question entries contain the actual FAQ content and must be assigned to categories. Question entries reference the category they belong to via categoryId
.
It's important to note the following points before starting to code:
- The Wix user must install the FAQ app on their site.
- When you delete a category, the questions that belong to it are also deleted.
- Question entries: Individual FAQ content items, containing a question and its answer. The questions and answers appear on Wix FAQ widgets on a site.
- Categories: Themed groupings that organize question entries. For example, Shipping or Returns. Categories appear as sections in Wix FAQ widgets on a site, allowing visitors to browse questions by topic.
- Labels: Additional groupings of FAQ question entries. Labels aren't visible to site visitors, but are useful in specific contexts, such as chat bots.