WordPress: Template Tags/trackback url:修订间差异
来自站长百科
(新页面: == Description == Displays or returns the trackback URL for the current post. This tag must be within WordPress:The Loop. == Usage == %%% <?php t...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述 == | |||
Displays or returns the trackback [[WordPress:Glossary#URI and URL|URL]] for the current post. This tag must be within [[WordPress:The Loop]]. | Displays or returns the trackback [[WordPress:Glossary#URI and URL|URL]] for the current post. This tag must be within [[WordPress:The Loop]]. | ||
显示或者返回当前文章的trackback [[WordPress:Glossary#URI and URL|URL]]。必须在[[WordPress:The Loop|The Loop]]内使用这个标签。 | |||
== Usage == | |||
== | == 用法 == | ||
%%% <?php trackback_url(display); ?> %%% | |||
%%% <?php trackback_url(display); ?> %%% | %%% <?php trackback_url(display); ?> %%% | ||
== Example == | == Example == | ||
== 例子 == | |||
<p>Trackback URL for this post: <?php trackback_url(); ?></p> | <p>Trackback URL for this post: <?php trackback_url(); ?></p> | ||
<p>Trackback 文章的URL: <?php trackback_url(); ?></p> | |||
== Parameters == | == Parameters == | ||
== 参数 == | |||
; display : (''boolean'') Display the URL (<tt>TRUE</tt>), or to return it for use in PHP (<tt>FALSE</tt>). Defaults to <tt>TRUE</tt>. | ; display : (''boolean'') Display the URL (<tt>TRUE</tt>), or to return it for use in PHP (<tt>FALSE</tt>). Defaults to <tt>TRUE</tt>. | ||
;显示:(''boolean'')显示URL(<tt>正确的</tt>)或者将URL返回用于PHP(<tt>错误的</tt>)。默认为<tt>正确的</tt>。 | |||
== Related == | == Related == | ||
== 相关的 == | |||
{{Tag Trackback Tags}} | {{Tag Trackback Tags}} | ||
{{Tag Footer}} | {{Tag Footer}} | ||
{{标签Trackback 标签}} | |||
{{标签页底文字}} |
2008年7月11日 (五) 14:20的版本
Description
描述
Displays or returns the trackback URL for the current post. This tag must be within WordPress:The Loop. 显示或者返回当前文章的trackback URL。必须在The Loop内使用这个标签。
Usage
用法
%%% <?php trackback_url(display); ?> %%%
%%% <?php trackback_url(display); ?> %%%
Example
例子
<p>Trackback URL for this post: <?php trackback_url(); ?></p>
<p>Trackback 文章的URL: <?php trackback_url(); ?></p>
Parameters
参数
- display
- (boolean) Display the URL (TRUE), or to return it for use in PHP (FALSE). Defaults to TRUE.
;显示:(boolean)显示URL(正确的)或者将URL返回用于PHP(错误的)。默认为正确的。