Answer the question
In order to leave comments, you need to log in
Woocommerce Category selection via WP_Query?
Good afternoon, I'm new to Woocommerce, I need to select a product from the Disks heading on the main page
, so I write the code like this
<?php $home_home = new WP_Query(array(
'post_type' => 'product',
'posts_per_page' => 9,
'tax_query' => array( 'product_cat' => 20 ),
)); ?>
и он выбирает весь товар а не из рубрики диски. Подскажите как исправить ?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question