Nov
16
How To Style Editor (Or Any Role) Comments in WordPress
Filed Under (Adsense, Wordpress, Wordpress Plugin) by pmuch-wp on 16-11-2009
I’ve recently moved to WordPress an active community site which is run and moderated by several editors and administrators. Each post gets dozens of comments, and I wanted to highlight those made by staff members.
What not to do
If you’ve googled a bit for a solution on how to identify authors’ or admins’ comments, you’ve probably seen several explanations on how to implement this by comparing emails. Something like:
CODE:
-
< ?php
if( $comment->comment_author_email == ‘admin@blog.com’ ) {











