Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have recently imported all my posts and comments via the Wordpress import/export tool into a fresh install. I have encountered a bug however, I've noticed that not all comments are displayed on single post pages, or they are from a different post.

On all index pages it will list the correct number of comments made, but when you load the single post page it loads incorrect comments for the post.

Any suggestions on what may the problem be?

share|improve this question

closed as too localized by toscho Oct 10 '12 at 23:47

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

2 Answers

Its because of multiple query_posts function being used without declaring wp_reset_query() at the end :-)

share|improve this answer
Could you please explain why you think that this because of a missing post data reset? – kaiser Oct 10 '12 at 21:52
Sorry wrong function used, I mean wp_reset_query() – Imran Oct 10 '12 at 22:25
Anyway: How did you get that out of the question (just curious)? – kaiser Oct 10 '12 at 23:38
I was looking back at your question and thought to myself, why AM I using postdata_reset, and realised I'm reseting the wrong thing lol (although it did actually fix the problem as well) – Imran Oct 10 '12 at 23:47
hehe... I didn't realize that you were the same person who asked the question and therefore wondered where the heck you got that info from. :) – kaiser Oct 11 '12 at 11:45

Check to make sure you don't have comment pagination turned on - it's in Discussion part of the Settings Admin.

share|improve this answer
Comment pagination is already disabled. – Imran Oct 10 '12 at 20:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.