Reputation: 394
Hello I have created content type product. I also add Taxonomy with name "category". I add field in with term reference in product content type. Now I want to get all content with taxonomy name and id which have content type named "product" using query in Drupal 8.
Upvotes: 0
Views: 843
Reputation: 449
Once you have created your view and added all the fields that your are interested in, add a filter on your taxonomy field "category":
The query will return all the content that have your taxonomy category "product".
Upvotes: 1