[Drupal 7] How to add tags for your custom content type?

| | 1 min read

Tags are very helpful when it comes to searching. You may get accurate search results, if you have given correct tags for your content. In Drupal 7, there is a default 'tag' field for 'article' and 'page' content type. The million dollar question is 'What if these are not the content types that you have used to create your content'?. Don't worry , continue reading to find how to add tags for your custom content type.

Suppose you have a content type named 'custom' and you need a tag field,

  1. Go to Structure -> content type-> custom
  2. Click on manage fields.
  3. Add the name of the new field.
  4. Select 'term reference' as field type.
  5. Select 'Autocomplete term widget(tagging) as widget '.
  6. Click on Save.
  7. Select the appropriate vocabulary "tags" from the list.
  8. Provide the values and click on Save settings.

After completing all the above steps, go to node/add/custom. You will find a tags field there. You can provide the tags there.
One more thing you might want to make use of the Drupal Tagcloud module to display the tag block.
Hope this helps!!!