WordPress.org

Ready to get started?Download WordPress

Forums

Comment form not appearing (18 posts)

  1. ianmcabee
    Member
    Posted 5 years ago #

    I have a blog setup at: http://www.ianmcabee.com/news.php

    However when a user clicks on the "no comments" link, the comment form is not showing up and they can post a comment. Comments are enabled and anyone can comment. Any advice?

    Thanks in advance!

  2. Justin Tadlock
    Member
    Posted 5 years ago #

    Do you have this line in single.php?

    <?php comments_template(); ?>

    If you don't, add it after The Loop.

  3. ianmcabee
    Member
    Posted 5 years ago #

    Yeah, it's in there. Any more advice?

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    Does your theme include a file called comments.php?

  5. ianmcabee
    Member
    Posted 5 years ago #

    Yes. Could it be a CSS issue?

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    No. I've looked at the source markup on your single post pages and there's definitely no comment form being generated.

  7. krayZpaving
    Member
    Posted 5 years ago #

    Am having the same problem myself with http://www.garethstravels.com

    Have tried four different themes, and none of them show the comments form. This includes the "standard" wordpress theme.

    Comments are turned on both in the "Discussion" settings and on the post itself.

    The source code doesn't show up the comments form either, so it seems like it's not being generated by the PHP. The <?php comments_template(); ?> code is there in all the templates.

    I'm running five other WordPress blogs, and none of them have this problem.

    Any ideas?

  8. krayZpaving
    Member
    Posted 5 years ago #

    No fix for this, but a total reinstall of WordPress resolved it. I copied the themes and plugins straight from the old to the new, and exported then imported blog entries, so none of them were the problem.

    Strange.

  9. whiteboxer
    Member
    Posted 5 years ago #

    I'm having the same issue. I'm not using the blog as the home page, but don't know if that's a issue because I have another site that's like that with no problem. the comments_template line is on the single.php page as well. Here's the link if anyone has any ideas:

    http://eoleducation.org/

  10. orangemoon
    Member
    Posted 5 years ago #

    I have this problem too, and I've tried several different themes, plus installed a completely new copy of wordpress, using a new database, and in a new location (was /wp, is now /omb). The comments form does not show up on the permalink page (using single.php), and I would never have noticed (not being one to get a lot of comments usually) if a new reader had not remarked that she couldn't find where to put a comment.

    I have <?php comments_template(); ?> in the template and a comments.php file, and I've had various problems with wordpress over the years but never one like this, and it is driving me insane that I can't fix it.

    Additionally, the "more" tag doesn't work - it shows up but when you click it to go to the permalink page, it also has the "read more" link and nowhere does the full text show up. This is also driving me insane.

    I want to concentrate on producing content, not spend entire days weeping with frustration.

    edit to add my url: http://orangemoon.cbd-hosting.net/omb

  11. orangemoon
    Member
    Posted 5 years ago #

    Has anybody figured this problem out yet? I've tried hardcoding the comments code into the single.php page, which surely should force it to show up??? I did disable all my plugins previously but it made no difference at all. I'm really at my wits end with this :(

  12. dtreuter
    Member
    Posted 5 years ago #

    I had the same problem on a site using the Thematic parent theme. Reinstalling WordPress did not resolve. To fix, I edited the following line from \wp-content\themes\thematic\page.php

    <?php if ( get_post_custom_values('comments') ) thematic_comments_template() ?>

    I simply removed the IF logic the author had in there and that fixed the problem. New code:

    <?php thematic_comments_template() ?>

    I'm not sure if there's a flaw in the logic, but the page now displays the comment form based whether I check Edit Page > Discussion > Allow Comments. Hope this helps.

    Dan

  13. letheos
    Member
    Posted 4 years ago #

    I had the same issue when updated the theme on my site. Go to Admin > Settings > Discussion and see if you have enabled the "Automatically close comments on articles older than ..."
    In my case this setting was the culprit.

  14. BSK
    Member
    Posted 4 years ago #

    had a similar problem and this fixed it.

    http://wordpress.org/support/topic/274144?replies=2

  15. Meini
    Member
    Posted 4 years ago #

    Thanks for the link vdsn. I am just not clear on where exactly to put the code that Innovine talks about:

    Quote:

    This seems to be fixed by using:
    <?php query_posts($query_string."&showposts=10"); ?>

    Could you please let us know?

    Cheers
    Meini

  16. Meini
    Member
    Posted 4 years ago #

    I looked into it a bit further. It appears to me that this fix only applies to Innovine's particular code and Theme.

  17. Krun49
    Member
    Posted 4 years ago #

    I have had the same problem on one of my sites, comments were closed, and thanks to letheos' contribution I have fixed the problem, I had automatic comments close after 14 days ticked in the discussion box (duh) never noticed it in all the time I was looking!

    As I said thanks, now comments box appearing as wanted!

  18. kule
    Member
    Posted 4 years ago #

    I had this problem when creating a new template. I had used the sidebar before the index/single page which meant I used query_posts to pull out a specific selection of posts before the main loop runs.

    If you do your own custom query_posts make sure you do a wp_reset_query after then the comments will work properly.

    Cheers
    Luke

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags