To create categories in Webflow and use them to filter blog posts, follow these steps:
1. Create a Categories Collection
- Go to CMS Collections and click Add Collection.
- Name it Categories and add a Text Field for the category name.
- Click Create Collection and add your desired categories.
2. Link Categories to Your Blog Collection
- Open your Blog Posts Collection and add a Reference Field.
- Set it to Reference Categories Collection so each blog post can have one category.
If you want multiple categories per post, use a Multi-Reference Field instead.
3. Apply Filters to Your Blog List
- Go to the Collection List displaying your blog posts.
- Click on Filter and select the Reference or Multi-Reference field you created.
- Choose the specific category to filter by.
4. Add a Category Selector (Optional)
- Add a Dropdown, Navbar, or Collection List to list all categories.
- Use Collection List Settings to show items from the Categories Collection.
- Link each category item to a CMS Collection Page filtered to show only posts from that category.
Summary
To filter blog posts by categories, create a Categories Collection, add a Reference or Multi-Reference Field in your Blog Collection, and apply filters to your blog list. You can also create a category selector for user-friendly navigation.