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

Question

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.

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

Leave an answer

Browse
Browse