I am using your plugin WCPS on the auction site. Every new auction have products from new category.
I put the shortcode of one slider to functions.php to place it before every product. So far it was OK and every time I just have to change the category (in pro version).
But know it will be two or more auctions at the same time. I would like to make things easier and set the plugin to check a current product category and "choose" the category as the slider's one.
Then I would not have to change the category every time in the slider options and even if I will have a few auctions at one time the slider always would show only products of the current product's category.
Is this possible to use wcps_filter_query_args to query always the category of current product?
And my functions.php code is:
add_action( 'woocommerce_before_single_product', 'slider_should_show_only_the_product_category', 8 );
echo do_shortcode("[wcps id='234']");
Thank you in advance for help.
Best for you.