How to show in search results posts with a particular tag in a particular category?

As the home page of my blog I’ve a static page.
There I want to show the navigation of the site.

Category1

  • Sub-Category1
    • tag1, tag2, tag3

Category1

  • Sub-Category2
    • tag1, tag2, tag3

Category2

  • Sub-Category1
    • tag1, tag2, tag3

Category2

  • Sub-Category2
    • tag1, tag2, tag3

All the above words are hyperlinks.

Now what I need is, when a user clicks on tag1 under subcategory1 in category2, all the posts of category2, in subcategory1 having tag1 shall be returned.

is it possible to have a URL like domain.com/category2/subcategory1/tag1 for this purpose?

2 Answers
2

Given the way categories & tags are setup in WordPress this would not work from a logical standpoint. The issue here is that tags have no way to be connected directly to a category, they are mutually exclusive from each other. The subcategories would work because a subcategory is directly related to is parent category but tags are non hierarchical and have no parent/child relationship capabilities on purpose.

Leave a Comment