posts . " WHERE post_type = 'post' && post_status = 'publish' ORDER BY comment_count DESC LIMIT 1"; $results = $wpdb->get_results($query); $maxComments = $results[0]->comment_count; query_posts('posts_per_page=-1&order=ASC'); ?>
"; the_date("Y"); echo ""; // prevent from outputting next iteration $i = 0; } $numComments = get_comments_number(); $heightPercentage = (($numComments / $maxComments) * 100); echo ""; echo "$numComments"; echo ""; endwhile; // Echo the last year post published echo ""; the_date("Y"); echo ""; ?>