Can the reviews under each product be paginated?
-
Hello, sometimes there are many reviews under a product, and it’s not suitable to display them all on one page. Is there a way to paginate them.
Thank you.
Attachments:
You must be
logged in to view attached files.
Hi wanglinc,
Thanks for reaching to us.
Please navigate to Settings -> Discussion and enable this (https://take.ms/HWNjP) option. So as a result, the pagination will be shown when you have a lot of comments.
All settings for manipulating the “Reviews” area are in Theme Settings -> Single product -> Reviews.
https://take.ms/mhIUa
Regards,
Thank you for your help.
I have another question: is it possible for the newest reviews to appear first by default on the first page?
I know that when I turn on the revews sorting feature, there is a ‘newest’ option that can do this.
However, I hope that the newest comments can be on the first page by default, without having to show the sorting option.
I used chatgpt and it gave me a way to modify functions.php, but this really didn’t work.
functions.php
function reverse_comments($comments) {
return array_reverse($comments);
}
add_filter ('comments_array', 'reverse_comments');
Hi wanglinc,
Code customization is not included basic support.
Please use the default sorting functionality from WordPress Settings > Discussion.
Regards,
WordPress Settings > Discussion can only specify whether the default display is the last page or the first page, as well as the order of each individual page. I hope that the newest reviews are on the first page, and then they are displayed on the second page, third page, and so on, in chronological order.
Is there a way to do this?
Hi wanglinc,
Currently there is an option to Sort reviews only https://prnt.sc/Mk7QniwhsvMF
And customization is not included in our support, it is beyond our limitations and support policy scope. Hope you can understand our limitations.
Regards,