Wordpress函数讲解-Author Template Tags

设计Wordpress主题涉及到很多函数,我们按字母排序进行了整理,并附有注释和讲解,开发者可以参考这些函数,希望可以加快你的开发进度。

作者模块标签函数集 Author Template Tags

  1. 获取文章作者的名称(Author)函数-<?php the_author(); ?>,无参数。
  2. 获取文章作者的描述(Description)函数-<?php the_author_description();?>,无参数。
  3. 获取用户的登陆名(Author Login)函数-<?php the_author_login();?>,无参数。
  4. 获取用户的名(Author First Name)函数-<?php the_author_firstname();?>,无参数。
  5. 获取用户的姓(Author LastName)函数-<?php the_author_lastname(); ?>,无参数。
  6. 获取用户的昵称(Author Nickname)函数-<?php the_author_nickname(); ?>,无参数。
  7. 获取作者的ID (Author ID)函数-<?php the_author_ID(); ?>,无参数。
  8. 获取作者的Email(Author Email)函数-<?php the_author_email(); ?>,无参数。
  9. 获取作者的URL(Author URL)函数<?php the_author_url(); ?>,无参数。
  10. 获取作者的网站链接(Author Link)函数<?php the_author_link(); ?>,无参数。
  11. 获取用户的Author AIM Screenname函数<?php the_author_aim(); ?>,无参数。
  12. 获取用户的Author Yahoo IM ID函数<?php the_author_yim(); ?>,无参数。
  13. 获取用户发表的文章数量(Author Posts)函数<?php the_author_posts(); ?>,无参数。
  14. 获取用户所有文章的链接(Author Posts Link)函数<?php the_author_posts_link(); ?>,无参数。
  15. 获取用户列表(Author List)函数<?php wp_list_authors(‘arguments’); ?>多参数。
    例如:<?php wp_list_authors(‘exclude_admin=1&show_fullname=0′); ?>
    参数说明
    optioncount:用户发表的文章数量
    <?php wp_list_authors(‘optioncount=1′); ?>
    exclude_admin:将管理员用户排除
    <?php wp_list_authors(‘exclude_admin=0′); ?>
    show_fullname:显示用户的姓和名
    <?php wp_list_authors(’show_fullname=1′); ?>
    hide_empty:隐藏没有发表文章的用户信息
    <?php wp_list_authors(‘hide_empty=0′); ?>
    feed:以文字的形式显示RSS FEED 链接
    <?php wp_list_authors(‘feed=RSS’); ?>
    feed_image:以图片的新式显示RSS feed 链接
    <?php wp_list_authors(‘feed_image=images/picture.jpg’);?>
除非注明,本博客文章均为原创,转载请以链接形式标明本文地址
原创文章如转载,请注明:转载自 任鸟飞网页设计 [ http://www.renniaofei.com/ ]
本文链接地址: http://www.renniaofei.com/design/wordpress-function-author-template-tags/
引用通告地址 Trackback URL:直接在本文链接地址后添加 trackback/
本文短网址: http://bit.ly/c5v7Ro
任鸟飞

任鸟飞网页设计网创办者 主要关注网页设计,网站建设,图形图像设计。 Twitter @renniaofei QQ:29900684

1 条评论

  1. 任鸟飞 十一月 25th, 2009   9:16 上午

    如果有什么遗漏及错误,请大家帮忙指正。希望多多提建议,谢谢!

留下评论

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: