I need a function that returns true when the author is an admin or an editor or of a certain role.
I can't use is_single because I have set up a forum and there are a million singles out there and I need a different layout for THE posts (the ones written in the blog by admins and editors) than from the forum entr开发者_如何学运维ies
Why don't you create an author.php
page you can customize the way the authors
page looks.
see more here http://codex.wordpress.org/Author_Templates#Sample_Template_File
Is this what you are looking for?
精彩评论