I want to have a particular Single-Post to list its comments differently (to include a graphic before every posters’ names) than the rest of the Posts.
As you can see in the code below, I’ve added the IMG tag to display a graphic before the comment poster’s name, but the problem is that every other Single-Post and Page will use this same Comment Template (comments.php) and show the same graphic which I don’t want.
<li class=”<?php if ( $comment->comment_author_email == get_the_author_email() ) echo ‘mycomment’; else echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>
<p style=”margin-bottom:5px;”><img src=”/graphic.gif” border=”0″><p>By <?php comment_author_link() ?> on ” title=””><?php comment_date(‘M j, Y’) ?> <?php edit_comment_link(‘Edit’,’ | ‘,”); ?></p>
<?php if ($comment->comment_approved == ‘0’) : ?>
Your comment is awaiting moderation.
<?php endif; ?>
<?php comment_text() ?>
Any ideas or instructions as how I can achieve this?
- The topic ‘How do you get different Comment look on different Post?’ is closed to new replies.