I assumed this would be simple, but I'm having a hard time sorting it out. All I want to do is use the standard [product_categories]
shortcode from WooCommerce to show all of my product categories except for a few. Basically I have two types of categories: location based (basically sales lot inventory) and style based (different types of products), so I want to show a list of the style categories (which could change or have additional styles added at some point) and leave out the locations, which are unlikely to change anytime soon.
So therein lies the problem. I know I can use the shortcode to only display certain categories by slug or ID, but I'm hoping to avoid having to modify the short code every time we need to add a new style. If I could do something like [product_categories category!="inventory1, inventory2, inventory3"]
that should fix my issue!
Is this possible?
I assumed this would be simple, but I'm having a hard time sorting it out. All I want to do is use the standard [product_categories]
shortcode from WooCommerce to show all of my product categories except for a few. Basically I have two types of categories: location based (basically sales lot inventory) and style based (different types of products), so I want to show a list of the style categories (which could change or have additional styles added at some point) and leave out the locations, which are unlikely to change anytime soon.
So therein lies the problem. I know I can use the shortcode to only display certain categories by slug or ID, but I'm hoping to avoid having to modify the short code every time we need to add a new style. If I could do something like [product_categories category!="inventory1, inventory2, inventory3"]
that should fix my issue!
Is this possible?
I submitted this question to the WooCommerce devs as well and they've officially confirmed it's not currently possible without modifying the shortcode. I will be submitting a feature request, though, so should anybody else find themselves in need of this, please track down that feature request and give it some props or submit it again on your own. I don't think the functionality should be difficult for them to include, so I would image it will have a decent likelihood of being adopted for a future release (if it gets enough steam, of course).
I'm not sure exactly what kind of platform they're using for their feature requests, but I may come back and link it here if it's like a popularity- or vote-based system.