CMS: Using Category Collections to Organize Your Content
Category collections help you organize items in one or more CMS collections with a built-in 'Category' field. You define the categories — whether that's topics for a blog, cuisines for a recipe site, cities for a restaurant menu, or any other grouping that fits your content.
When you use the 'Category' field to associate an items collection to a category collection, Wix creates a two-way relationship between them. You can manage the same category assignments from the items collection or from the category collection, and both views stay in sync automatically.
Wix also creates a hidden 'Primary Category' field in your items collection. The Primary Category stores the one category that best represents each item for search engines — especially useful when items belong to more than one category.
Learn how to create dynamic category pages after you finish setting up your categories.
Before you begin:
Make sure you already have a CMS collection that you want to categorize.
We recommend learning how datasets work before you create dynamic category pages.
Step 1 | Creating a category collection
A category collection is a dedicated collection that stores your list of categories — up to 1,000. Unlike a regular items collection, a category collection does not contain the content items themselves. It holds only the categories that get assigned to items in other collections.
For example, you might create a "Cities" category collection containing "New York", "Chicago", and "Detroit", then use it to organize items in a "Pizza Menu" collection by city. The same category collection can serve multiple items collections, so you could also use "Cities" to organize a "Restaurants" collection or an "Events" collection.
When you first create a category collection, it only contains the fields you add. The 'Assigned Items' field, which shows which items belong to each category, appears automatically in Step 2 after you connect the category collection to an items collection using a 'Category' field.
To create a category collection:
Go to CMS in your site's dashboard.
Click + Create Collection at the top right.
Select Category collection and click Next.
Enter a name for the collection in the Category collection name field.
(Coding only) Enter a Category collection ID to use in your code.
Click Create collection.
Add fields to your collection manually or by importing a CSV file:
Add fields manually: Click + Add Field on the right side of the table to begin adding fields to your collection manually.
Import a CSV file: Click More Actions and select Import items to upload a CSV file and use its fields and items in the collection.
Add items to your collection:
Click + Add Item at the top right.
Enter details about the item in all the relevant fields and click Save.
Repeat these steps to add more items to the collection.
Step 2 | Adding a 'Category' field to your items collection
Add a 'Category' field to any items collection to connect it with a category collection. For example, if you have a "Pizza Menu" items collection and a "Cities" category collection, you can add a "Cities" 'Category' field to organize your pizza menu items by city (e.g. New York, Chicago, Detroit).
When you add a 'Category' field, Wix automatically creates an 'Assigned Items' field in the connected category collection and a hidden 'Primary Category' field in your items collection. The 'Assigned Items' field shows which items are linked to each category, while the 'Primary Category' field stores just one category per item for SEO purposes — even when the 'Category' field holds several. You can only add one 'Category' field per items collection, and you can't duplicate it.
To add a 'Category' field to your items collection:
Go to CMS in your site's dashboard.
Click the items collection in which you want to add a 'Category' field.
Click Manage Fields.
Click + Add Field.
Under Organization & Reference, select the Category field type and click Choose Field Type.

Click the Category collection dropdown and choose the category collection you want to assign to the field.
(Optional) Edit the Category field name, the Field ID that cannot be changed later, and Help text, if needed.
Click Save.

Notes:
Your item collection now includes that 'Category' field type you just added and a new hidden 'Primary Category' field type.

Your category collection now includes an 'Assigned Items' field type that connects to the consuming (item) collection.

Step 3 | Assigning categories to items
After you add the 'Category' field to your items collection, you can assign categories to each item. The 'Category' field can store more than one category for the same item. For example, one pizza menu item may be available in multiple city categories.
To assign categories to items:
Go to the items collection in which you just added a 'Category' field.
Click the relevant cell in the 'Category' field and select the categories you want to associate with the item. The first category you assign to an item become its primary category. You can click the Flag icon

next to a different category to make it the item's primary category. Click outside of the panel to finish selecting an item's categories.
Tips:
Click Manage categories to view and manage the category collection content.
If you need to assign a category that has not been created yet in the category collection, enter the name of the category and click Create '{Category-name}'.

Repeat step 2 above for each item in the collection that you want to categorize.
Step 4 | Managing categories from the category collection
Category assignments work in both directions — you can assign categories from the items collection using the 'Category' field, or from the category collection using the 'Assigned Items' field. Both collections stay in sync automatically.
Managing from the category collection side is helpful when you want to focus on a single category and review everything linked to it. For example, open the "New York" category in your "Cities" collection to see all the pizza menu items assigned to it from one place.
To manage categories from the category collection:
Go to CMS in your site's dashboard and select the relevant category collection.
Locate the 'Assigned Items' field type, which is on the far right of the table by default.
Tip: The Assigned Items icon

appears next to the field name and the field name matches the name of the items collection.

Click the relevant 'Assigned Items' field next to the relevant category to see which items are assigned to the category.
Edit the assigned items:
Add item: Select the item you want to assign to the category in the list of options.
Remove item: Click the X on the relevant item to remove it from the category.
Open collection: Click Open Collection to view the assigned items category.

Repeat steps 3-4 above for each category in which you want to edit the assigned items.
Next, learn how to:
FAQs
Click below for answers to common questions about category collections.
What are the limitations of category collections?
Category collections have a few limitations to be aware of. A category collection can contain up to 1,000 category items. Each items collection supports only one 'Category' field, and you can't duplicate it. You also can't sort by a 'Category' field, though you can filter using Contains and Does not contain.
If you need a more flexible many-to-many relationship that isn't specifically about categorization (e.g. linking movies to actors or products to suppliers) consider using a 'Multi-Reference' field instead.
What happens if I delete a category collection?
If you delete a category collection, all categories in that collection are deleted and removed from the items they were assigned to. The connected 'Category' field in an items collection then shows a warning state because its source category collection no longer exists.
At that point, you can either restore the deleted category collection or delete the broken 'Category' field.
What happens if I delete a 'Category' field in an items collection?
If you delete a 'Category' field from an items collection, all category assignments are removed from the items in that collection. The hidden 'Primary Category' field is also deleted at the same time, and any site elements connected to the 'Category' field are affected.
The category collection itself is not deleted. It stays available and can still be used by other items collections.
What's the difference between a 'Category' field and a 'Multi-Reference' field?
A 'Category' field is purpose-built for categorization. It provides a dedicated category assignment flow, creates a hidden 'Primary Category' field for SEO, supports dynamic category page templates, and is limited to one per items collection.
A 'Multi-Reference' field is designed for broader many-to-many relationships between collections. Use a 'Multi-Reference' field when the relationship isn't specifically about categorization — for example, linking movies to actors or products to suppliers.
Can I change the primary category of an item?
Yes. If an item has more than one assigned category, you can change which one is primary from the 'Category' field.
The first category assigned becomes the primary category automatically. When assigning categories, click the Flag icon

next to the relevant category to make it the primary category.

Alternatively, you can unhide the 'Primary Category' field and choose another category in the field to make it the primary category. The 'Category' field automatically adjusts to your selection in the 'Primary Category' field and vise versa.
How do I view the hidden 'Primary Category' field?
The 'Primary Category' field is hidden by default, but you can make it visible in your collection view.
To show the 'Primary Category' field:
Open the items collection that has a 'Category' field.
Click Manage Fields.
Click the checkmark next to the Primary Category field.
The 'Primary Category' column shows only one category per item — the one that search engines use for indexing — even when the 'Category' field holds several categories. You can't delete the 'Primary Category' field on its own. It is only removed when the connected 'Category' field is deleted.
Can I hide a category from my live site?
Yes. Each category collection includes a Status field that lets you set individual categories to 'Published', 'Draft', or a scheduled status.
Setting a category to 'Draft' does not remove it from the items already assigned to it. The items stay visible on your site as usual, but the 'Draft' category no longer appears on connected dynamic category pages or other elements that display categories to visitors. You can also schedule a category to become 'Published' or 'Draft' at a specific date and time using the Status field.
For the full publishing status workflow, see CMS: Controlling the Publishing Status of Collection Items.
Can I sort or filter my collection view by a 'Category' field?
You can filter by a 'Category' field using Contains or Does not contain. Filtering lets you narrow down the items shown in your collection view based on their category assignments.
You cannot sort your collection view by a 'Category' field. That is a current limitation of category collections.
Need A Professional Website?
Contact Us Today!
I'm a paragraph. I'm connected
I'm a paragraph. I'm connected
I'm a paragraph. I'm connected
I'm a paragraph. I'm connected
I'm a paragraph. I'm connected
I'm a paragraph. I'm connected