WordPress: Template Tags/comment type:修订间差异
来自站长百科
(新页面: == Description == Displays the type of comment (regular comment, Trackback or Pingback) a comment entry is. This tag must...) |
无编辑摘要 |
||
(未显示另一用户的1个中间版本) | |||
第1行: | 第1行: | ||
== 描述 == | |||
== | 描述一个评论内容所属于的评论类型(定期的评论, [[WordPress:Glossary#Trackback|Trackback]] 或者[[WordPress:Glossary#PingBack|Pingback]])。必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用这个标签。 | ||
== 用法 == | |||
%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%% | %%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%% | ||
== | |||
== 例子 == | |||
<p><?php comment_type(); ?> to <?php the_title(); ?>: </p> | <p><?php comment_type(); ?> to <?php the_title(); ?>: </p> | ||
; comment : (''string'') | == 参数 == | ||
; trackback : (''string'') | |||
; pingback : (''string'') | ; comment : (''string'')描述评论类型的文本。默认<tt>'comment'</tt>。 | ||
; trackback : (''string'') 描述类型评论的文本。默认<tt>'Trackback'</tt>。 | |||
; pingback : (''string'') 描述 Pingback类型评论的文本。默认 <tt>'Pingback'</tt>。 | |||
== | == 相关的== | ||
{{ | {{标签评论标签}} | ||
{{PHP | {{PHP 函数 标签 页底文字}} |
2008年7月11日 (五) 15:47的最新版本
描述[ ]
描述一个评论内容所属于的评论类型(定期的评论, Trackback 或者Pingback)。必须在The Loop或者一个评论loop内使用这个标签。
用法[ ]
%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%%
例子[ ]
<p><?php comment_type(); ?> to <?php the_title(); ?>: </p>
参数[ ]
- comment
- (string)描述评论类型的文本。默认'comment'。
- trackback
- (string) 描述类型评论的文本。默认'Trackback'。
- pingback
- (string) 描述 Pingback类型评论的文本。默认 'Pingback'。