admin管理员组

文章数量:1289879

I need to make a multiple dynamic tax query

 $args['tax_query'] = array(
            'relation' => 'AND',
            array(
                'taxonomy' => $taxonomies,

                'field' => 'slug',
                'terms' => $attributes,
                'operator' => 'IN',
            )

        );

As reported on codex refence /

So, how can I set the tax query args from two arrays: one for terms and one for taxonomies?

本文标签: plugin developmentMultiple dynamic Tax Querypass taxonomy argument from array