Support » Fixing WordPress » Page comments are not being displayed

  • Resolved macographer

    (@macographer)


    I’ve been searching for solutions to this problem for a bit, but I can’t seem to get any relavant results, so my apologies if this problem is addressed elsewhere.

    I’ve setup several pages on my site ( http://macographie.com ) and only one of the pages is setup to accept comments ( http://macographie.com/wordpress/?page_id=201 ) but the comments are now showing up on the page. In fact, I only noticed that comments were being posted because I got a couple of spam comments, for which moderation was requested.

    I’ve looked through the options, and it looks like I’ve required that “Comment author must have a previously approved comment” before comments appear, but when I go to manage the comments, I don’t see any way to approve or deny the comments. I am wary of checking the other boxes, just because I don’t really want spam to get on there. But perhaps since I’ve already recieved moderation requests for at least two spam comments I don’t need to worry about it.

    Do these comment options only apply to pages, or posts as well? I do not remember seeing these options in 1.5, and I’ve just upgraded today with (thankfully) no problems whatsoever.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Comments being held for moderation don’t appear on the page unless you approve them.

    In your admin, go to Manage, then Awaiting Moderation. There you should see the comments and a choice to approve or deny.

    And the option “Comment author must have a previously approved comment” was there in 1.5… you just never noticed it. 🙂

    Thread Starter macographer

    (@macographer)

    Well, I know what moderation is for, but the problem is the comments are not showing up on the page at all. I have just approved several comments just today, and none of those comments have appeared on the page.

    I should’ve mentioned before that my first thought (after looking over the configuration) was that there might be something wrong with the template, since I did change it quite a bit. Anyway, after upgrading the first thing I did was change the template to the default, but that didn’t cause the comments to show up on the page, so I feel mostly confident that this not a template problem.

    Switching to the default actually won’t rule out a theme issue, as the default theme is set to not have comments on a page. (Great logic though, you were headed in the right direction…) 🙂

    How is your page template calling the comments? Are you pulling in the comment template, or do you just have the comment code pasted into the page.php?

    If you have all the code in there, you might try commenting that out, and replacing it with <?php comments_template(); ?>, then copy comments.php in from the default theme if you don’t have one in your theme already.

    If you’re calling the comment template already, backup the copy you’re using now, and copy comments.php from the default into your current theme.

    If neither of those work, I think I’m stumped. 🙂

    Thread Starter macographer

    (@macographer)

    Aha! The page.php template was including the comments.php file like this: <p><?php include (TEMPLATEPATH . "/comments.php"); ?></p> and as soon as I replaced that with the <?php comments_template(); ?> the comments showed up beautifully.

    Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page comments are not being displayed’ is closed to new replies.