Başlığı
get_the_title();
fonksiyonu ile,

Yorum sayısını da:
wp_count_comments();
fonksiyonu ile göstereceğiz.

İkisini bir kullanmak için de şöyle bir kod yazabiliriz.

<?php
$yorumlar = wp_count_comments( get_the_ID() );
$yorumSayisi = $yorumlar->approved; // Sadece onaylanmış yorumları say
?>

<h1><?php echo esc_html( get_the_title() . ' (' . $yorumSayisi . ') Yorum Yapılmış' ); ?></h1>