Is there a way to force a tag into a topic in a specific category without the user having to add it?

I’m not sure about your specific use case, but it might be redundant to force the same tag on every topic in a category.

While you can’t prepopulate a tag in a category using existing settings, it’s possible to achieve this through a theme component or a plugin.

Without further customization, there are a couple of options that could potentially work for your case:

  1. Set the Minimum number of tags required in a topic: setting in the category and add a required tag group to the category.

    This way, you could set up multiple tags for the category like bread, dessert, meat etc — users wouldn’t be able to post without choosing at least 1 (or more) tags.

  2. Set up automatic tagging based on a word or phrase that commonly appears in recipes. You can do this from admin/customize/watched_words.

    This approach might require some trial and error and may not be perfect. If you’re in the US, this is slightly easier since the imperial system has unique measurements. Most recipes would probably mention tsp or tbsp, for example. Other phrases that come to mind, which would be fairly unique to recipes, might include preheat, mixing bowl, saute and so on.

1 Like