The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Okay, brilliant. Will give it a go.
Okay, yeah that fixes it. So is there any way to make that plugin work with S&F sorting?
Okay thanks for the detailed explanation Trevor.
Thanks Trevor. Yes I have both those options on and the taxonomy is in the form.
Okay, got it. Didn’t realise S&F wasn’t doing the query at that stage.
For anyone else looking for this, this is what worked in the end.
/**
* Hide Categories from WooCommerce Shop Page
*/
add_filter( 'woocommerce_product_subcategories_args', 'custom_woocommerce_product_subcategories_args' );
function custom_woocommerce_product_subcategories_args( $args ) {
$args['exclude'] = array('139','140', '132', '331', '330'); // Insert the product category IDs you wish to exclude
return $args;
}
Based on this: https://mikejolley.com/2018/02/07/woocommerce-3-3-hide-uncategorized-category-from-the-shop-page-on-the-frontend/
Yep, that’s correct. This is hosted on WP Engine by the way which has its own caching but I’ve emptied the cache over and over.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy