I’ve created some customized ‘associated merchandise’ based mostly on attributes within the backside of every of my merchandise (single product web page).
The construct in shortcode from Woocommerce: is sensible sufficient to not present the product that the shopper is viewing.
However with shortcodes like:
i can not seem to discover a method to exclude the product.
I’ve seek for it for some time and located that in case you loop via a traditional Woocommerce merchandise question you’ll be able to go an argument like:
exclude => array(123)
Or one other place i’ve discovered:
post__not_in => array(1234")
However these attributes should not working with Woocommerces shortcodes.
I’ve tried ( so i do not break the shortcode ):
%5B for [ and %5D for ]
However none of them are working.
I’m occupied with copying the capabilities from The Woocommerce Docs into my very own capabilities.php and work from there.
Then i should overwrite them and go the worth my self.
However i assumed possibly there was a better method
Are you aware any?