开发者

Wordpress= is_author(admin) or Is_entry or similar?

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜