V
V
Valera Udav2015-09-22 04:20:53
WordPress
Valera Udav, 2015-09-22 04:20:53

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 question

Ask a Question

731 491 924 answers to any question