We can add taxonomies to content types as a field, like how we added fields earlier. To demonstrate adding the Category vocab as a field, navigate to /admin/structure/types/manage/post/fields or use the Admin toolbar to click on Manage - Structure - Content types and select the Manage fields button next to the Post content type.
We can now add our new Category Taxonomy vocab by performing the following steps:
- Click on the Add field button.
- Choose Taxonomy term from the Add a new field dropdown.
- Label: Category.
- Click on the Save and continue button.
- Choose Unlimited from the Allowed number of values dropdown.
- Click on the Save field settings button.
- Choose Category from the AvailableVocabularies field under REFERENCE TYPE.
- Click on the Save settings button.
We have now successfully added a Term reference field to our Post content type. We will visit adding a post in a moment. For now, we have one additional field that our content type would benefit from, and that is the ability for users to comment on each post.