Query Loop help please

Hi,

I have created a custom post type ‘Brand’. In the template for this custom post, I want to query the products belonging to this Brand.

As an example, mydomain/brand/apple

Template then has query loop with all ‘apple’ products.

Products are all assigned a ‘product-tag’ in this case ‘apple’.

Thanks for your help…I just can’t get this working.

Bryan

Hey Bryan,

you can add a taxonomy query to your product query. So if you have a brand called “Apple” and a product tag called “Apple” (which you then apply to specific products) you can use the name for the comparison:

Best,

André

Hi Andre,

This is great thank you! I got this working well.

Best,

Bryan