Skip to content
Advertisement

Get products from a specific brand in WooCommerce using a WP_Query

In WooCommerce, I am trying to display products from a specific brand in my home page like featured products section. I tried the code below, but the products not belong to that brand.

This is what I tried:

JavaScript

Any suggestions?

Advertisement

Answer

You should use tax_query

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement