Woocommerce latest review

I am trying to get the latest comment / review on any product on my test page, so far i am treating it as a post, and got something like this :

<?php
    $args = array ('post_type' => 'product');
    $comments = get_comments( $args );
    wp_list_comments( array( 'callback' => 'woocommerce_comments' ), $comments);
?>

<?php get_comments( $args ); ?>

Any help is much appreciated, thanks


Source: wordpress

Leave a Reply