Support » Fixing WordPress » setup_postdata does not retreve comments

  • I’m running WP 2.0. I want to create two custom homepages for my blog, (root directory runs MT)

    Each are new page templates:

    I’m trying to call setup_postdata to show the number of comments beneath each post, but no comments are appearing on either template. The thing is, they used to appear fine on the headline version.

    I tried turning off all my plugins, deleting all comment-related plugins, and renaming each deactivated plugin in turn. I also tried replacing my comment template with the default version, and calling setup_postdata again right before the comments.

    Here is the code. I suspect it’s a setting or something I changed in WP. Sorry for extraneous code, I’m not sure what’s relevant.
    Classic View:
    Headline View (one post):

    If it’s relevant, here are my current plugins, which are all deactivated:

    What am I missing?
    Thanks in advance for your help with this tricky problem.

  • The topic ‘setup_postdata does not retreve comments’ is closed to new replies.