The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to make comments show always on this page? (4 posts)

  1. gavpedz
    Posted 5 years ago #

    I would like to make comments show on this page http://www.gpwindows.co.uk/category/testimonials/ all the time so i do not have to click the comments link how can i do it?

  2. Michael
    Forum Moderator
    Posted 5 years ago #

    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...

  3. gavpedz
    Posted 5 years ago #

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

  4. Michael
    Forum Moderator
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.