Woocommerce related products sorted by date instead of the new shuffle filter


Recently woocommerce has this Shuffle filter woocommerce_product_related_posts_shuffle which always returns “true” and it randomizes related products. I want to sort related products by date (newest first to oldest). I am a noob in pHp so please walk me through the steps to do that. I know where the files are but i need to know the codes and where to put them.

, , Ali Khater 4 years 2019-11-05T14:33:44-05:00 0 Answers 75 views 0

Leave an answer