Forums
Home / Fixing WordPress / How to highlight admin comments
(@gillsans)
14 years, 7 months ago
Hello, I am using the following code to generate my comments. What is the best way to highlight admin comments?
<?php foreach($comments as $comment) : ?> <?php $i++; ?> <ul <?php alternate_rows($i); ?> id=”comments”>
<li id=”comment-<?php comment_ID(); ?>”> <?php comment_author_link(); ?> – <?php comment_date(); ?> at <?php comment_time(); ?>
<?php endforeach; ?>
(@samboll)
http://www.mattcutts.com/blog/highlight-author-comments-wordpress/
(@gillsans)
14 years, 7 months ago
Hello, I am using the following code to generate my comments. What is the best way to highlight admin comments?
<?php foreach($comments as $comment) : ?>
<?php $i++; ?>
<ul <?php alternate_rows($i); ?> id=”comments”>
<li id=”comment-<?php comment_ID(); ?>”> <?php comment_author_link(); ?> – <?php comment_date(); ?> at <?php comment_time(); ?>
<p>Your comment is awaiting approval</p>
<?php endif; ?>
<?php comment_text(); ?>
<?php //comment_type(); ?>
<?php endforeach; ?>