Title: different comment.php
Last modified: August 19, 2016

---

# different comment.php

 *  [merakly](https://wordpress.org/support/users/merakly/)
 * (@merakly)
 * [17 years ago](https://wordpress.org/support/topic/different-commentphp/)
 * how can i add a different comment.php to a single post. if it is post ID 4 i 
   want it be comment4.php and all other single posts will me normal comment php.
 * <? if ($post->ID != 4) {
    comment4.php } else { ?> comment.php <? } ?>
 * when i do that, there is syntax error :S

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [17 years ago](https://wordpress.org/support/topic/different-commentphp/#post-1039713)
 * It’s not that simple. I’d imagine you’ll need to look at creating a comment custom
   callback:
 * [http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display#Custom_Comment_Layout.2FFormat](http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display#Custom_Comment_Layout.2FFormat)

Viewing 1 replies (of 1 total)

The topic ‘different comment.php’ is closed to new replies.

## Tags

 * [coment](https://wordpress.org/support/topic-tag/coment/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/different-commentphp/#post-1039713)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
