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.

Read more here:: Woocommerce related products sorted by date instead of the new shuffle filter

Leave a Reply

Your email address will not be published. Required fields are marked *