WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Single.php repeating content and comments (4 posts)

  1. Tzaddi
    Member
    Posted 2 years ago #

    I'm having an issue with single views of some posts:

    • Single post views of older posts like this one are showing the_content followed by some comments, the_content again, followed by the same comments.
    • The first time round that post says "12 comments", the second it says "20 comments". But, in this case it only displays 5 of the 12 total comments that truly exist for that post.
    • Newer posts (like this one), in single view, are fine.
    • That newer post which displays fine has 71 comments, so it's not a matter of the bug showing after a certain number of comments.
    • I confirmed it's not coming from the comments template both by commenting out comments_template(); and by removing my theme's comments.php so it would use the default instead.
    • I deactivated plugins that are doing something related to the loop (comment luv, subscribe to comments, WWSGD, and sexy bookmarks) in case it was coming from there
    • this bug existed before upgrade to 3.3 so it's not that

    I'm running out of ideas! Anyone else have some?

  2. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    Have you tried repairing the database?

  3. Tzaddi
    Member
    Posted 2 years ago #

    Thanks for the idea, @kmessinger. I just tried that now and it didn't fix it. And of course I emptied the page cache just to be sure. Hmm...

  4. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    Start the basic debug.

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

Topic Closed

This topic has been closed to new replies.

About this Topic