站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Template Tags/wp list authors
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
Fludlen
(
讨论
|
贡献
)
2008年6月28日 (六) 17:04的版本
(
差异
)
←上一版本
|
最后版本
(
差异
) |
下一版本→
(
差异
)
跳转至:
导航
、
搜索
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== Description == ==描述 == Displays a list of the blog's authors (users), and if the user has authored any posts, the author name is displayed as a link to their posts. Optionally this tag displays each author's post count and [[WordPress:Glossary#RSS|RSS]] feed link. 显示一个博客作者(用户)的列表,如果用户写了一些文章,用户名会以一个链接的方式显示,链接到用户所写的文章。这个标签随意地显示每个作者的文章数目和[[WordPress:Glossary#RSS|RSS]] feed链接。 == Usage == == 用法== %%% <?php wp_list_authors('arguments'); ?> %%% %%% <?php wp_list_authors('arguments'); ?> %%% == Examples == ==例子 == ===Default Usage=== ===默认用法=== <pre> $defaults = array('optioncount' => false, 'exclude_admin' => true, 'show_fullname' => false, 'hide_empty' => true,'feed' => '', 'feed_image' => '');</pre> <pre> $defaults = array('optioncount' => false, 'exclude_admin' => true, 'show_fullname' => false, 'hide_empty' => true,'feed' => '', 'feed_image' => '');</pre> By default, the usage shows: 默认情况下,用法显示为: * Does not display the count of the number of posts *不显示文章的数目。 * Excludes the 'admin' author from the list *从列表中移除'管理'作者 * Does not display the full name (first and last) but displays the author nickname *不显示全名(姓和名),但是显示作者的昵称 * Excludes users with no posts *删除没有文章的作者 * No author feed text is displayed *不显示作者feed文本 * No author feed image is displayed *不显示作者feed图像 <?php wp_list_authors(); ?> <?php wp_list_authors(); ?> === Authors Full Names and Number of Posts === === 作者全名和文章数目=== This example displays a list of the site's authors with the full name (first and last name) plus the number of posts for each author. Also, and by default, it excludes the admin author, hides authors with no posts, and does not display the RSS feed or image. 这个列表现在作者的全名(姓和名)和每个作者所写的文章数目。同时,默认情况下,列表删除了管理作者,隐藏了没写文章的作者,同时不显示RSS feed或者图像。 <?php wp_list_authors('show_fullname=1&optioncount=1'); ?> <?php wp_list_authors('show_fullname=1&optioncount=1'); ?> <div style="border:1px solid blue; width:50%; padding:10px">Harriett Smith (42)<br /> Sally Smith (29)<br /> Andrew Anderson (48)</div> <div style="border:1px solid blue; width:50%; padding:10px">Harriett Smith (42)<br /> Sally Smith (29)<br /> Andrew Anderson (48)</div> == Parameters == == 参数== ; optioncount : (''boolean'') Display number of published posts by each author. Options are: ; optioncount : (''boolean'')显示每个作者发表的文章的数目。选项是: :* <tt>1</tt> (true) :* <tt>0</tt> (false - this is the default) ; exclude_admin : (''boolean'') Exclude the 'admin' (login is admin) account from authors list. Options are: :* <tt>1</tt> (true - this is the default) :* <code>0</code> (false) :* <tt>1</tt> (真的) :* <tt>0</tt> (假的 – 这是默认的) ; 排除_管理 : (''boolean'') 从作者列表上排除'管理' (以管理帐户登录)帐户。选项是: :* <tt>1</tt> (真的 – 这是默认的) :* <code>0</code> (假的) ; show_fullname : (''boolean'') Display the full (first and last) name of the authors. If false, the nickname is displayed. Options are: ;显示_全名:(''boolean'')显示文章作者的全名(姓和名)。如果是错误的,显示昵称。选项是: :* <tt>1</tt> (true) :* <tt>0</tt> (false - this is the default) ; hide_empty : (''boolean'') Do not display authors with 0 posts. Options are: :* <tt>1</tt> (true - this is the default) :* <tt>0</tt> (false) :* <tt>1</tt> (真确的) :* <tt>0</tt> (错误的 – 这是默认的) ; 隐藏_空的 : (''boolean'') 不显示没写文章的作者。选项是: :* <tt>1</tt> (真的 –这是默认的) :* <tt>0</tt> (错误的) ; feed : (''string'') Text to display for a link to each author's RSS feed. Default is no text, and no feed displayed. ; feed : (''string'')文本显示连接到每个作者的RSS feed的链接。 默认是没有文章,而且没有显示feed。 ; feed_image : (''string'') Path/filename for a graphic. This acts as a link to each author's RSS feed, and overrides the '''feed''' parameter. ; feed_image : (''string'') 一个图形的路径/文件名。这个作为每个作者的RSS feed的链接,而且覆盖了'''feed''' 参数。 == Related == == 相关的 == {{Tag Author Tags}} {{Query String Tag Footer}} {{标签 作者标签}} {{查询 String标签 页底文字}}
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
模板:查询 String标签 页底文字
(
编辑
)
模板:标签 作者标签
(
编辑
)