WordPress: Template Tags/comment time:修订间差异
(新页面: == Description == Displays the time a comment was posted. This tag must be within WordPress:The Loop, or a comment loop. == Usage == %%% <?php comment_time('d'); ?> %%% == Example...) |
小无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述 == | |||
Displays the time a comment was posted. This tag must be within [[WordPress:The Loop]], or a comment loop. | Displays the time a comment was posted. This tag must be within [[WordPress:The Loop]], or a comment loop. | ||
显示评论发表的时间。标签必须用在[[WordPress:The Loop|The Loop]]或者一个评论loop内部。 | |||
== Usage == | == Usage == | ||
%%% <?php comment_time('d'); ?> %%% | %%% <?php comment_time('d'); ?> %%% | ||
== 用法 == | |||
%%% <?php 评论_时间('d'); ?> %%% | |||
== Example == | == Example == | ||
== 例子 == | |||
Dsiplays the comment time in the format "22:04:11". | Dsiplays the comment time in the format "22:04:11". | ||
以"22:04:11"格式显示评论时间。 | |||
<p>comment timestamp: <?php comment_time('H:i:s'); ?></p> | <p>comment timestamp: <?php comment_time('H:i:s'); ?></p> | ||
<p>comment 时间标记: <?php 评论_时间('H:i:s'); ?></p> | |||
== Parameters == | == Parameters == | ||
== 参数 == | |||
; d : (''string'') Formatting for the time. Defaults to the time format set in WordPress. See [[WordPress:Formatting Date and Time]]. | ; d : (''string'') Formatting for the time. Defaults to the time format set in WordPress. See [[WordPress:Formatting Date and Time]]. | ||
; d : (''string'')时间格式。默认为WordPress中设置的时间格式。请看看[[WordPress:Formatting Date and Time|形成日期和时间格式]]。 | |||
== Related == | == Related == | ||
第22行: | 第40行: | ||
{{Tag Footer}} | {{Tag Footer}} | ||
== 相关的== | |||
{{标签 评论 标签}} | |||
{{标签 页底文字}} |
2008年7月1日 (二) 17:29的版本
Description
描述
Displays the time a comment was posted. This tag must be within WordPress:The Loop, or a comment loop.
显示评论发表的时间。标签必须用在The Loop或者一个评论loop内部。
Usage
%%% <?php comment_time('d'); ?> %%%
用法
%%% <?php 评论_时间('d'); ?> %%%
Example
例子
Dsiplays the comment time in the format "22:04:11".
以"22:04:11"格式显示评论时间。
<p>comment timestamp: <?php comment_time('H:i:s'); ?></p>
<p>comment 时间标记: <?php 评论_时间('H:i:s'); ?></p>
Parameters
参数
- d
- (string) Formatting for the time. Defaults to the time format set in WordPress. See WordPress:Formatting Date and Time.
- d
- (string)时间格式。默认为WordPress中设置的时间格式。请看看形成日期和时间格式。
Related
相关的
comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss