How to query related products only from custom texonomy/category

Hi,

so, to show products only from one category, you can use “Terms (include)” field:

The setup below will show you all products that are inside the clothing category.

Available since 2.0 alpha version, you can also use Taxonomy Query, with the “Terms” set to {post_terms_product_cat:plain:term_id}. That way, you don’t need to manually select the category (like above), but you can query products dynamically, based on current product categories.


(Mentioned brefly in the academy: Dynamic Data – Bricks Academy)

If you don’t use 2.0 alpha, then you can use the workaround that was provided here in this forum topic: SOLVED: Get related products (comma into category name) - #2 by itchycode

Let me know if this helps.
Matej