aşagıdaki kod tum zaman en fazla yorum yapılan konuları listeliyor


function wpb_most_commented_posts() {
// start output buffering
ob_start();
?>

    // Run WP_Query
    // change posts_per_page value to limit the number of posts
    $query = new WP_Query('orderby=comment_count&posts_per_page=200');

    //begin loop
    while ($query->have_posts()) : $query->the_post(); ?>



    // end loop
    ?>




// Turn off output buffering
$output = ob_get_clean();

//Return output
return $output;
}
// Create shortcode
add_shortcode('wpb_most_commented', 'wpb_most_commented_posts');

//Enable shortcode execution in text widgets
add_filter('widget_text', 'do_shortcode');


Ama ben sadece bugün en çok yorum alan konuları listelemek istiyorum yardım eder misiniz?