Brand site show only by tags
-
Hi have some problem to run this code it is an brand site with woocommerce-brands plugin.
I om trying to only show by product_tag.
I have made a code, there work with tags but it will not work with brands.$term = get_queried_object(); if ($query->is_archive()) { $query->set('tax_query', array('taxonomy', 'product_brand', 'field', 'slug', 'terms', $term->slug)); $query->set('post_status', 'publish'); $query->set('posts_per_page', 40); $query->set('product_tag', $teen_kids_adult); }
Hope some can help.
Best regards
MortenThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Brand site show only by tags’ is closed to new replies.