PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]
Botoscope is currently in early access

Support Forum

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

Show results from current category only

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 tried all combinations of setting found online to stop the filter showing results from the whole store rather than from the current category.

https://picturehangingsystems.ae/product-category/hanging-wires/

Is there any simple fix like conditional code I can add to get results from the current category only?

 

Best regards,

Ingmar

Hi Ingmar

I tried to open your category page directly to see the behavior myself, but access to the site seems to be restricted (I got a message saying access has been limited by the site owner). So I cannot confirm this by testing it live, but based on the plugin code I can give you an educated guess of what is likely happening and a fix to try.

By default, whenever a filter is applied, HUSKY resets a few WordPress query flags (including is_tax) to unify the page as a generic product archive, so the filter form can render consistently across different page types. Normally this is harmless because the actual category restriction lives in a separate part of the query (tax_query), not in that flag. However, if your theme or page builder relies on that flag to decide which products belong to the current category when rendering the results, resetting it can cause the filtered results to fall back to showing products from the whole store instead of just the current category.

We have seen and fixed this exact symptom before on a similar setup. The fix was to enable two settings together in HUSKY:

tab Advanced -> Options -> Disable swoof influence: Yes
SEO links enabled: Yes

Could you try enabling both of these in the HUSKY settings and test filtering again on the hanging-wires category page? If it still shows results from the whole store after that, please let us know what theme or page builder you are using for the category archive template (Elementor, Divi, Bricks, a classic WooCommerce theme, etc.), that will help us narrow it down further.