Wordpress = is_author(admin)或Is_entry或类似?

时间:2010-12-11 21:13:46

标签: wordpress

我需要一个在作者是管理员,编辑或某个角色时返回true的函数。

我不能使用is_single,因为我已经建立了一个论坛,那里有一百万单打,我需要一个不同的帖子(由管理员和编辑在博客中写的)而不是论坛条目

1 个答案:

答案 0 :(得分:1)

为什么不创建author.php页面,您可以自定义the authors页面的显示方式。

点击此处http://codex.wordpress.org/Author_Templates#Sample_Template_File

这是你在找什么?