Title: Comments template for category
Last modified: August 20, 2016

---

# Comments template for category

 *  Resolved [futurepocket](https://wordpress.org/support/users/futurepocket/)
 * (@futurepocket)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/comments-template-for-category/)
 * I’m trying to use a different comments.php for all posts in one of my categories,
   so I modified this code in my single.php file:
 * <?php if (get_option(‘askit_show_postcomments’) == ‘on’) comments_template(”,
   true); ?>
 * TO:
 * <?php if (get_option(‘askit_show_postcomments’) == ‘on’) if (in_category(4403)){
   comments_template(‘comments-tutorials.php’); } else { comments_template(”, true);}?
   >
 * In the comments-tutorials.php, I’ve basically copied the original comments.php
   but changed around a little text specific to that category. Unfortunately, it’s
   not loading that comments-tutorials.php file, but messing up the comments in 
   that category. Any ideas how I can fix that code?

The topic ‘Comments template for category’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 0 replies
 * 1 participant
 * Last reply from: [futurepocket](https://wordpress.org/support/users/futurepocket/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/comments-template-for-category/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
