WordPress.org

Ready to get started?Download WordPress

Forums

Is the "leave a Reply" comment box supposed to work like this? (7 posts)

  1. magicalwonders
    Member
    Posted 4 years ago #

    Hi Folks,

    I'm playing around with different themes and noticed that by default the "leave a reply" comment box displays on every page except the posts page! I'm using latest version 2.9.2

    If I turn off comments for a page the box no longer displays. So far so good. However, the page I choose for posts won't show the comment box until the link beneath the post (No comments) is clicked.
    You can see what I mean at this url: http://www.mylessinclair.com/blog/

    I've tried the default theme and this produces the same result. Is this how it is supposed to be? I would have thought that the Posts page would display a comment box inviting a comment as in this page - http://www.mylessinclair.com/about/

    I hope someone can throw some light on my confusion!

    Many thanks,

    Myles

  2. magicalwonders
    Member
    Posted 4 years ago #

    Anyone got any opinions on this?

    I have ticked "allow Comments" and "Trackbacks" for both posts and the page they are associated with. However, the comment box won't display until clicking the "No comments" link beneath the post. http://www.mylessinclair.com/blog/

    Is this how it's supposed to be? Or is there a way to have the comment box already showing?

    Hope someone can advise.

    Myles

  3. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    http://wordpress.org/support/topic/83919?replies=8

    you may need to add this to index.php(?) or the file that generates your blog front page:

    <?php global $withcomments; $withcomments = true; ?>
    <?php comments_template(); ?>
  4. magicalwonders
    Member
    Posted 4 years ago #

    you may need to add this to index.php(?) or the file that generates your blog front page:

    <?php global $withcomments; $withcomments = true; ?>
    <?php comments_template(); ?>

    Thanks alchymyth, I tried adding that code to page.php and single.php but the comment box on my post page still only shows after clicking the link beneath the post.

    I have my index page as a static page and my post page assigned to a page called "blog". The comment box automatically displays on any page that I allow comments for with the exception of the posts page. I'm wondering if that's how it's meant to be, as it includes a link for the comment box beneath the post?

  5. davidlll
    Member
    Posted 3 years ago #

    Ah! I am having the same problem and found this thread.
    Could anyone help?
    Thanks.

  6. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    @davidlll
    first - determine which template file shows your page of posts;
    then find the end of the loop ( before the endwhile );
    then try to apply the fix;

    if that does not work, paste the code of that file into a http://wordpress.pastebin.com/ and post the link to it here;

    you could also post the name and download link of your theme; and a link to your site.

  7. davidlll
    Member
    Posted 3 years ago #

    Thanks alchymyth.
    I think I did that but couldn't get it to work.

    Here is the pastebin link:
    http://wordpress.pastebin.com/USrr2gxV

    There are quite a few index.php
    The only one I found with
    endwhile );
    is at
    /blog/wp-contents/themes/classic/index.php

    I hope you are able to help.
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic