WordPress.org

Ready to get started?Download WordPress

Forums

Comment Area / Leave a Reply does not display (6 posts)

  1. annedawn
    Member
    Posted 1 year ago #

    I created a blog based on the Bones theme. On my index page "Leave a reply" and the comments field do not disply. When I edit my posts an look at them in the via "Preview" the comments field does display.

    Comments are enabled in the settings. I looked at the code but cannot find anything different between index.php and page.php

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Site URL?

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    On my index page "Leave a reply" and the comments field do not disply.

    by default, they never do. click through to the individual post the add comments.

  4. annedawn
    Member
    Posted 1 year ago #

    thanks alchymyth - i did not know that. what can i do to make the commentsfield display on the index page?

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the common recommendation is that it should not be done;

    reasons:
    a:
    many of the 'comments features' such as paginated comments do not work properly or do not work at all;
    b:
    with a large number of comments, the loading time of the index page will get very long.

    technically you could do it by adding this into the c index template:

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

    (at the same location in the index template as you would find <?php comments_template(); ?> in single.php)

  6. annedawn
    Member
    Posted 1 year ago #

    thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic