Home Forums WoodMart support forum Can the reviews under each product be paginated?

Can the reviews under each product be paginated?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #505656

    wanglinc
    Participant

    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.
    #506033

    Hung Pham
    Keymaster

    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,

    #515167

    wanglinc
    Participant

    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.

    #515172

    wanglinc
    Participant

    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');
    #515233

    Hung Pham
    Keymaster

    Hi wanglinc,

    Code customization is not included basic support.

    Please use the default sorting functionality from WordPress Settings > Discussion.

    Regards,

    #515249

    wanglinc
    Participant

    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?

    #515545

    Hung Pham
    Keymaster

    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,

Viewing 7 posts - 1 through 7 (of 7 total)