Comment count same for every post in homepage WP_Query


I have a WP_Query on my homepage template that works just fine for get_the_title() and MANY other functions for each post in the loop.

However, any way of getting the comment count just grabs the real count for the first post and then repeats the same output for the rest of the posts.

I’ve tried both echo get_comments_number($post->ID); and comments_number();

The kicker: if I use the same template NOT on the homepage, comment count works fine.

jetlej 9 years 2014-11-23T20:28:31-05:00 0 Answers 79 views 0

Leave an answer