WordPress:Template Tags/comment date

来自站长百科
Xxf3325讨论 | 贡献2008年6月25日 (三) 11:17的版本 (新页面: == Description == Displays the date a comment was posted. This tag must be within WordPress:The Loop, or a comment loop. == Usage == %%% <?php comment_date('d'); ?> %%% == Example...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Description

Displays the date a comment was posted. This tag must be within WordPress:The Loop, or a comment loop.

Usage

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

Example

Displays the comment date in the format "6-30-2004":

Comment posted on <?php comment_date('n-j-Y'); ?>

Parameters

d
(string) Formatting for the date. Defaults to the date format set in WordPress. See WordPress:Formatting Date and Time.

Related

模板:Tag Comments Tags

模板:Tag Footer