WordPress:Template Tags/comment time

来自站长百科
Xxf3325讨论 | 贡献2008年7月11日 (五) 16:26的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

描述[ ]

显示评论发表的时间。标签必须用在The Loop或者一个评论loop内部。

用法[ ]

%%% <?php comment_time('d'); ?> %%%


例子[ ]

以"22:04:11"格式显示评论时间。

<p>comment 时间标记:  <?php comment_time('H:i:s'); ?></p>

参数[ ]

d
(string)时间格式。默认为WordPress中设置的时间格式。请看看形成日期和时间格式

相关的[ ]

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