Title: fixing comments
Last modified: August 19, 2016

---

# fixing comments

 *  [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/fixing-comments/)
 * I use different post.php templates for my main site posts vs my blog posts. But
   both call the same comments template using this code:
 *     ```
       <?php comments_template('', true); ?>
   
       	<?php else: ?>
   
       		<div class="span recent">
       		<h2><?php fs_lang("Not Found"); ?></h2>
       		<p><?php fs_lang("You are searching for something that isn't here."); ?></p>
       		</div>
   
       	<?php endif; ?>
       ```
   
 * Yet both reveal different comment layouts:
 * [**main site post**](http://planetthrive.com/2009/10/xmrv-retrovirus-findings-and-amygdala-hyperarousal-model/)
 * [**blog post**](http://planetthrive.com/2009/11/the-seven-essentials-of-recovery/)
 * Can anyone tell me how to get the blog post comments layout to look like the 
   main site posts comments layout?
 * Here is the comments template in the theme functions file:
 *     ```
       # Comments template
       function mytheme_comment($comment, $args, $depth) {
       	$GLOBALS['comment'] = $comment; ?>
       	<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
   
       	<?php
       	$comment_type = get_comment_type();
       	if($comment_type == 'trackback') :
       		?><p class="trackback"><?php fs_lang("Trackback"); ?>: <?php echo get_comment_author_link() ?></p><?php
       	else :
       	?>
       		<div class="comment1">
       		<?php echo get_avatar($comment,$size='50'); ?>
       		<div class="details">
       		<p class="author"><?php echo get_comment_author_link() ?></p>
       		<?php if ($comment->comment_approved == '0') : ?>
       		<p class="mod"><?php fs_lang("Your comment is awaiting moderation."); ?></p>
       		<?php endif; ?>
       		<p class="date"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?> <?php edit_comment_link(__('Edit'),' &nbsp; ','') ?>
       		</p>
       		</div>
       		<div class="commenttext"><?php comment_text() ?></div>
       		<div class="reply">
       		<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
       		</div>
       		</div>
       		<?php
       	endif;
       }
       ```
   
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/fixing-comments/#post-1264639)
 * You might want to try validating both template outputs first.
 *  Thread Starter [wildbug](https://wordpress.org/support/users/wildbug/)
 * (@wildbug)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/fixing-comments/#post-1264849)
 * How would I do that?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘fixing comments’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [wildbug](https://wordpress.org/support/users/wildbug/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/fixing-comments/#post-1264849)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
