This topic has 4 replies, 2 voices, and was last updated 6 months, 3 weeks ago ago by Luca Rossi
Hello, currently on my website the product reviews are sorted from oldest to newest, so you need to scroll down to see the most recent review. I would like to reverse the order so you can see the most recent review on top. Can you help me on how to do this?
Thanks!
Hi @Theodoros,
Please try adding the following code under functions.php file locates in your child theme:
function wpa_filter_list_comments($args){
$args['reverse_top_level'] = true;
return $args;
}
add_filter( 'woocommerce_product_review_list_args', 'wpa_filter_list_comments' );
Fore more information, please take a look at this: https://wordpress.stackexchange.com/questions/139197/sort-reviews-ratings-by-date-on-woocommerce
Hope it helps!
This did not work, i attach a screenshot of the functions.php file
Hi @Theodoros,
We tried to login with this account but it didn’t work.
Could you please check again?
Thank you!
You must be logged in to reply to this topic.Log in/Sign up