How to filter my posts by categories and tags simultaneously?


I need your help with advice for post-filtering in WordPress.
I will describe the situation briefly:
I created the main categories of posts which I placed in the main menu:

  • Accessories;
  • Exterior;
  • Interior;
  • Engine

In each of the posts, I placed a tag of the car brand, for example:

I have one post with the category Accessories and tag Jeep
And the second post with category Exterior and tag Jeep

When I’m choosing in main menu category “Accessories”>>> tag “Jeep” filter avoid sorting by categories and gives me all posts by tag Jeep. How can I filter my post by main categories and tags simultaneously? When a visitor clicks on a menu item, the filter should sort posts that pass two conditions: category and tag.

I can’t create child categories for the main category because each of my main categories has the same car brands, and the child category can have only one parent category

Any suggestions?

Jack Johansson 1 year 2021-07-23T08:55:46-05:00 0 Answers 0 views 0

Leave an answer