2

How to query custom post types by custom taxonomy term? For example, I have custom post type “Courses” and custom taxonomies “City” and “Subject”. I want to query all courses that contain city: Warsaw and subject: excel.

In case of posts I can do it with categoryIn:

query MyQuery {
  posts(where: {categoryIn: [195, 1]}) {
    nodes {
      title
    }
  }
}

Is there a similar solution for custom post types?

Marek Foltas
  • 31
  • 1
  • 3

0 Answers0