ResolvedHow to change product review order?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #30444

    In wordpress > settings > discussion I changed Comments should be displayed with the NEWER comments at the top of each page.

    However in Lafka Woocommerce products the reviews still show in Ascending order (oldest on top). Any way to adjust this, or better to keep the wordpress setting as default usage?


    I found that adding:

    function reverse_review_order( $x ){ $x[‘reverse_top_level’] = true; return $x; }
    add_filter( ‘woocommerce_product_review_list_args’, ‘reverse_review_order’, 999 );

    To functions.php solves the issue. Mayvbe a nice improvement for the next version?


    Hi opicron,

    As you have already found, the product reviews are not affected by the blog comments settings, as they are in different database table, so the only option would be a custom function.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register