How to add specific tags under categories on Wordpress

Main categories on my blog

  • example.com/recipes
  • example.com/fashion
  • example.com/beauty
  • example.com/life

I want to add tags under this recipes category like

  • example.com/recipes/tag/appetizers
  • example.com/recipes/tag/breakfast
  • example.com/recipes/tag/dinner

these tags should not be accessed via other categories like

  • example.com/fashion/tag/appetizers
  • example.com/beauty/tag/breakfast
  • example.com/life/tag/dinner

i need to generate archive pages for different tags specific to that category like

  • Appetizers Archive - example.com/recipes/tag/appetizers
  • Breakfast Archive - example.com/recipes/tag/breakfast
  • Dinner Archive - example.com/recipes/tag/dinner

is this possible? thanks.

1 Answer 1


I believe the core issue here is that tags aren't organized by categories. As far as Wordpress is concerned, tags and categories don't have a direct relationship with each other. They are simply different ways of organizing posts, where the key difference is that categories are hierarchical (there are parent categories and subcategories) and tags are not.

The easiest solution in your use case would be to change your tags to subcategories of the parent. E.g. "appetizer" is a subcategory of "recipes."

Then go to your "Permalink" settings in the WP admin. Set a custom permalink structure to /%category%/%postname%/ and hit save twice. That should flush the permalink cash.

Then, when categorizing posts, only add them to their child category (e.g. add to the "appetizer" category but NOT the "recipe" category).

This won't include the word "tag" in your URL structure, but it will place both terms in the URL like this website.com/recipes/appetizers/post-name/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.