• Hey everyone,

    Just wondering if someone could give me a hint as to why on the page I have specified as my blog posts page (https://challengebychoice.ca/cbcwp/blog/) won’t show my comment box.

    When you reach a single post it is available, but that’s all.

    I have created two page templates which for with and without comments but have been unable to have multi-post blog page to have comments.

    I guess my problem might be I can’t find the code which calls the multiple blog posts to add the comment php code.

    I appreciate the help!

    -James

Viewing 1 replies (of 1 total)
  • when you call the comments in your template using comments_template(); it goes to this coding in wp-includes/comment-template.php line 854:

    if ( !(is_single() || is_page() || $withcomments) || empty($post) )

    which on purpose checks that the code is called from a singular template such as a static page or single post.

    you can overwrite this (not recommended) by
    adding global $withcomments; $withcomments = 1; before comments_template();

    however, many of the comments features such a paginated comments, etc. will not work properly; also with many comments, the page load might get excessive.

Viewing 1 replies (of 1 total)
  • The topic ‘Comments unavailable on blog posts page’ is closed to new replies.