Query examplesCustom Categories
Custom Categories
Read more in guide Working with Custom Categories.
These are examples of queries to fetch custom category taxonomy data.
Taxonomies unmapped to the schema
Retrieve categories with taxonomy "product-category"
:
Retrieving categories associated to a custom post
Type GenericCustomPost
has field categories
, to retrieve the custom categories added to the custom post:
Filtering custom posts by category
To retrieve the custom posts with a given category or categories, we can use inputs filter.categoryIDs
and filter.categoryTaxonomy
:
Prev
Next