header-logo
Learn how to build your website and business using Wix.
Design and manage your site with smart functionalities.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image
In this article
  • Step 1 | Creating a category collection
  • Step 2 | Adding a 'Category' field to your items collection
  • Step 3 | Assigning categories to items
  • Step 4 | Managing categories from the category collection
  • FAQs

CMS: Using Category Collections to Organize Your Content

9 min
In this article
  • Step 1 | Creating a category collection
  • Step 2 | Adding a 'Category' field to your items collection
  • Step 3 | Assigning categories to items
  • Step 4 | Managing categories from the category collection
  • FAQs
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.
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:

  1. Go to CMS in your site's dashboard.
  2. Click + Create Collection at the top right. 
  3. Select Category collection and click Next.
  4. Enter a name for the collection in the Category collection name field.
  5. (Coding only) Enter a Category collection ID to use in your code.
  6. Click Create collection
  7. Add fields to your collection manually or by importing a CSV file:
  8. Add items to your collection: 
    1. Click + Add Item at the top right.
    2. Enter details about the item in all the relevant fields and click Save
    3. 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:

  1. Go to CMS in your site's dashboard.
  2. Click the items collection in which you want to add a 'Category' field.
  3. Click Manage Fields
  4. Click + Add Field
  5. Under Organization & Reference, select the Category field type and click Choose Field Type.   
Screenshot of adding the Category field type.
  1. Click the Category collection dropdown and choose the category collection you want to assign to the field. 
  2. (Optional) Edit the Category field name, the Field ID that cannot be changed later, and Help text, if needed. 
  3. Click Save
Screenshot of setting up and saving a Category field type.
Notes:
  • Your item collection now includes that 'Category' field type you just added and a new hidden 'Primary Category' field type. 
Screenshot showing a Category field and the hidden Primary Category field.
  • Your category collection now includes an 'Assigned Items' field type that connects to the consuming (item) collection.
Screenshot of the Assigned Items field that gets added to the Category 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:

  1. Go to the items collection in which you just added a 'Category' field.
  2. 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}'
Screenshot of assigning categories to a collection item.
  1. 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:

  1. Go to CMS in your site's dashboard and select the relevant category collection.
  2. 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.
Screenshot of an 'Assigned Items' field named Pizza Menu.
  1. Click the relevant 'Assigned Items' field next to the relevant category to see which items are assigned to the category. 
  2. 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. 
Screenshot of assigning another item to a category.
  1. Repeat steps 3-4 above for each category in which you want to edit the assigned items. 

FAQs

Click below for answers to common questions about category collections. 

Helpmate

Hello

Need a bit more guidance?
Summary of this article
Unlock personalized helpLog in to get the most out of Helpmate.