Function Reference/the author url

来自WordPress中文文档
跳转至: 导航搜索

includeonlydiv style=clear:both; background-color:#FFFFFF; border:1px solid #FFFFFF; color:#c00; padding:7px; margin:0.5em auto 0.5em auto; vertical-align:middle;This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also onlyincludecodewp-includes/deprecated.php/code/onlyinclude

div class=template-description style=padding: 0 1.5em; border: 1px solid #eeeeee; background-color: #f9f9f9

Template Description

Link to the source code on http://core.trac.wordpress.org/browser/.

Parameters

  1. filename
  2. (option) path to codetag/code (version) or codetrunk/code. This option is only used for a new function.br /Default: codetrunk/code -- trunk is the latest bleeding edge development version of WordPress.

Usage

Link to the stable version: pre检查到模板循环:模板:Trac/pre

Link to trunk: pre检查到模板循环:模板:Trac/pre

/div

wordpress.org.cn./div/includeonlynoinclude

Description

This Template is used by Codex:Template Messages.

Usage

pre 检查到模板循环:模板:Message /pre

Result

检查到模板循环:模板:Message

/noinclude


Description

This tag displays the URL to the Website for the author of a post. The Website field is set in the user's profile (Administration Profile Your Profile). This tag must be used within The Loop.

Replace With

Usage

%%% ?php the_author_url(); ? %%%

Parameters

This tag does not accept any parameters.

Example

Displays the author's URL as a link and the link text.

lt;pgt;Author's web site: 
a href=?php the_author_url(); ??php the_author_url(); ?lt;/agt;lt;/pgt;

Which displays as:

div style=border:1px solid blue; padding:10px; width: 75%Author's web site: www.example.com/div

This example displays the author's name as a link to the author's web site.

?php if (get_the_author_url()) { ?a href=?php the_author_url(); ??php the_author(); ?/a?php } else { the_author(); } ?

Change Log

Related

the_author, the_author_link, get_the_author_link, the_author_meta, the_author_posts, the_author_posts_link, wp_dropdown_users, wp_list_authors

includeonlydiv style=clear:both; background-color:#F7F7F7; border:1px solid #CCCCCC; color:#000000; padding:7px; margin:0.5em auto 0.5em auto; vertical-align:middle;See also index of Function Reference and index of Template Tags./div/includeonlynoinclude

Description

This Template is used by Codex:Template Messages.

Usage

pre 检查到模板循环:模板:Message /pre

Result

检查到模板循环:模板:Message

/noinclude