Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1036846

    please see the uploaded image.
    now it has 81reviews. but that shows one page with 81 full reviews which are hard to read and scroll down.
    so please let me know any way to change it.

    https://drive.google.com/open?id=1haan4ii52RWoNJ-aHN3GnJYgf7Pl6wGC

    thanks.

    • This topic was modified 6 years ago by ngavy.
    #1036858

    I guess some one checking.

    Please latest review should be the first and ordered latest one to old one.

    Please.

    #1036859

    Hey ngavy,
    I changed the setting for you at: WordPress > Dashboard > Settings > Permalink > Discussion > Other comment settings Then I checked the box that says “Break comments into pages with [number], then set the [number] to how many reviews will show on the review tab. I set the number to 8, but feel free to adjust to suit.

    Best regards,
    Mike

    #1036860

    Hey, Mike.

    Please, the latest review should be the first and ordered latest one to the old one.

    I tried with this one. but I can not change the order.

    #1036863

    you need to look at the order and page. how it appears in the review section.

    #1036864

    Hi,
    At the same place, after the box for the number there is a box with the choice “First” or “Last” that is the setting you want. I changed it to “Last” for you.
    Please note that the pages show 8 reviews each and the last page will show however many are left over, which right now is 1. Feel free to adjust the number to suit.

    Best regards,
    Mike

    #1036869

    right now I understand what you set to the homepage.
    but I want to make at the first page with latest review and order from new to the oldest one.
    can we make it that?

    #1037272

    Hi,
    To reverse the order of the paged comments I added this code to the end of your functions.php file in Appearance > Editor:

    function reverse_comments($query) {
        if( !is_admin() ) {
            $query->query_vars['order'] = 'DSC';
        }
        return $query;
    }
    
    add_filter( 'pre_get_comments', 'reverse_comments' );

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1037936

    thanks. Mike. you are brilliant.!!!

    #1037997

    Hi,
    Thanks, that’s nice. Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.