I implemented Comment Authority. You can distinctly see a very tiny graphic next to my comments. This seems to be only effective for a single author. Plus, if anyone else enters “Bryan” as their name, I think that graphic will display as well. In any case, I’m sure it can be improved – I definitely don’t know how to do that.
You could always add more conditions in your if statement. For example,
((get_comment_author() == 'Your_Name') && (get_comment_author_email()=="Your_Email"))
Let me know if I can help you further!
Meng
LikeLike
Thanks Meng! I tried that, and wasn’t sure if there’s a colon (:) after that. Also, was there a reason why there isn’t any spaces for the get_comment_author_email tag? I need to install a plugin to make pasting code easier, huh?
LikeLike
That colon is needed for the
if
syntax. Alternatively you can do this:<?php if ((get_comment_author() == 'Meng')&&(get_comment_author_email()=="gaomeng@gmail.com")) { ?>
<div class="comment-authority"></div>
<?php } ?>
I’m quite the php n00b so I could be wrong. But at least it works =)
LikeLike
By the way, whilespace doesn’t matter. =)
LikeLike
That’s not working for me. Darnit.
LikeLike