I basically want to set apart author comments for my blog. There are a few methods I found by Googling one in particular I got working (somewhat)
http://aonach.com/chatter/highlight-aut ... wordpress/
As instructed I added this bit of code to the comments file:
Code: Select all
<?php
$isByAuthor = false;
if($comment->comment_author_email == get_the_author_email()) {
$isByAuthor = true;
}
?>Code: Select all
<li class="comment wrap" <?php if($isByAuthor ) { echo 'authorcomment';} ?>" id="comment-<?php comment_ID() ?>">I pretty much have to have two completely separate classes so it would be more like this:
Code: Select all
<?php if($isByAuthor ) { echo '<li class="author-comment-wrap">';} ?>"
<?php if($notsure) { echo '<li class="normal-comment-wrap">';} ?>"
Code: Select all
<?php if($isByAuthor ) { echo '<li class="author-comment-wrap">';} ?>"
Hopefully this all makes sense.
Thanks.