Öncelikle cevabınız için teşekkür ederim.
global $wpdb;
$ids = array();
$posts = get_posts( array('category' => '9,11' ) );
foreach( $posts as $post )
$ids[] = $post->ID;
$ids = implode( ",", $ids );
$count = $wpdb->get_results( "
SELECT comment_approved, COUNT(*) AS num_comments
FROM {$wpdb->comments} WHERE comment_post_ID in ($ids)
GROUP BY comment_approved", ARRAY_A
);bu fonksiyonu denedim fakat sonuç vermedi sizde bi inceleyebilir misiniz ? Bana daha çok tarihlere göre yorum sayısını gösterme, kullanıcının yorumlarını gösterme gibi kodların olduğu bir içerik gibi geldi. Kategoriye ait değil sanırım