0
votes
2answers
455 views

Show image next to the comment author if have certain role

I want to create a badge image for comment author of a certain role, say, Editor. I want to style comments of users with the Editor role differently than comments of non-registered or lower-level ...
0
votes
1answer
131 views

Return count for characters in the comment and perform action based on the length

I am calling recent comments into my template with $comment->post_title the variable length is specified like this : SUBSTRING(comment_content,1,180) how could I write a conditional ...