I am trying to show the most commented post. Only one post should show but I am getting 2 even though the number of comments is not the same?
<?php $args = array(
'orderby' => 'comment_count',
'posts_per_page' => 1,
);
$most_commented = new WP_Query($args);
?>
<?php if ($most_commented->have_posts() ):
while ($most_commented->have_posts() ): $most_commented->the_post();
$author_id = get_the_author_meta( 'ID' );
?>
<?php // display info about blog post here ?>
<?php endwhile; wp_reset_postdata(); ?>
<?php endif; ?>