WordPress.org

Support

Support » How-To and Troubleshooting » How to make comments show always on this page?

How to make comments show always on this page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael
    Forum Moderator

    @alchymyth

    try to edit category.php of your theme;

    (the following assumes a ‘normal’ theme structure – if your theme is different, please paste the code of your category archive template into a http://pastebin.com/ and post the link to it here)

    before the endwhile; of the loop, add:

    <?php if( is_category('testimonials') ) {
    global $withcomments; $withcomments = true;
    comments_template(); } ?>

    (for details on how to add the comments_template(), for instance corresponding html tags, check single.php of your theme)
    be aware that by ‘forcing’ comments to show in this template, not all the comments options will work properly, such as comment pagination…

    I dont have a category.php in my theme the theme is Quest

    Michael
    Forum Moderator

    @alchymyth

    according to the template hierarchy, archive.php is the next template to check.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make comments show always on this page?’ is closed to new replies.