I’ve build a small scale comment rating plugin and I want to show one of the comment fields for overall rating with each post title in a particular category… is there a way I can display comment meta in the loop?
I want to show the sum of all the current published comment meta for the rating of a post if possible.
(i.e. add up all the values / # of individual ratings) and output that number along with the post title…
$args = array( 'post_type' => 'Product' );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
// get sum of comment meta for rating / count of all comments
The topic ‘Show Comment Meta in Loop’ is closed to new replies.
(@sarah_frantz)
11 years, 2 months ago
I’ve build a small scale comment rating plugin and I want to show one of the comment fields for overall rating with each post title in a particular category… is there a way I can display comment meta in the loop?
I want to show the sum of all the current published comment meta for the rating of a post if possible.
(i.e. add up all the values / # of individual ratings) and output that number along with the post title…