PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Filter options show all categories despite set taxonomies

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I have various pages on my site, for example Women, Men, Bestsellers etc. On each of them I want to show a filter with subcategories on the 1st line and sizes on the 2nd line.

For example on Men's page I now have a shortcode [woof taxonomies=product_cat:67], which I thought was going to show only Men's subcategories and sizes.

However filter options still show all Women's subcategories too. I can filter by men's and by size, but showing Women's on a Men's page is confusing.

How to fix it?

thanks

Update:

I have read a lot in the forum and would like to specify that automatic category pages work fine. I need help in custom pages where for example I have products for MEN. The codes with tax_only and exclusions don't work. I tried to use this code in my functions.php file but it broke my site.

add_action('wp_head',functions(){
if(is_page('PAGE_ID')){ //paste  your page  ID
$_GET['really_curr_tax']='16-product_cat';
}
});

How do I show only parent category and its subcategories + only its attributes on the filter?

thanks

Hello

Your code is a good idea.

But  try to  use:

add_action('wp_head',function(){
if(is_page('PAGE_ID')){ //paste  your page  ID
$_GET['really_curr_tax']='16-product_cat';
}
});

Your error - https://c2n.me/4az75Vi.png