Right this is the slice of code that is used for my comments.
<li>
<div class="meta">
<?php echo get_avatar($comment,$size='70',$default='<path_to_url>' ); ?>
<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
</div><!-- /meta -->
<div class="shout">
<?php comment_text() ?>
</div>
<?php
}
On the top <li> I want to add an IF statement to compare the author of the article to the comment author.
I've tried adding
<li <?php
if (comment_author() == the_author())
{
echo " class=\"author\"";
}
?>>
But all it does it output
<li commentauthor theauthor>
commentauthor would be the comments authors name and theauthor would be the authors name.
Any help?