Answer the question
In order to leave comments, you need to log in
How to display a list of taxonomies in WordPress depending on postmeta posts?
I am developing a store based on the WooCommerce plugin. The bottom line is, you need to display a list of categories (they are also taxonomies), but excluding the categories in which the products are completely over, i.e. products in which the arguments for sampling:
$args = array (
'post_type' => 'product',
'meta_key' => '_stock_status',
'meta_value' => 'outofstock'
);
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